$querymem_garprating = $db->query(“SELECT voter, author, Avg(rating) AS garprating FROM $table_ratings GROUP BY voter, author HAVING (voter=$xmbuser)”);
I get a syntax error on this…
I also tried this:
$querymem_garprating = $db->query(“SELECT voter, author, Avg(rating) WHERE voter = ‘$xmbuser’ AS garprating FROM $table_ratings GROUP BY voter, author”);
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE voter = ‘Matt’ AS garprating FROM xmb_ratings GROUP BY voter