Change group-by. I know what was there was equivalent, but Postgres is pedantic about these thigns, and was reporting an error.

This commit is contained in:
tjhunt 2008-07-14 15:57:49 +00:00
parent baef998bb9
commit 17312b83c5

View File

@ -98,7 +98,7 @@ function quiz_get_average_grade_for_questions($quiz, $userids){
"($qmfilter) AND " .
"qa.userid $usql AND " .
"qa.quiz = ? ".
"GROUP BY qs.question";
"GROUP BY qns.questionid";
return $DB->get_records_sql_menu($questionavgssql, $params);
}