Index: index.php =================================================================== RCS file: /cvsroot/moodle/moodle/grade/report/outcomes/index.php,v retrieving revision 1.11.2.2 diff -u -r1.11.2.2 index.php --- index.php 28 Feb 2008 15:51:25 -0000 1.11.2.2 +++ index.php 28 May 2008 15:29:05 -0000 @@ -1,4 +1,4 @@ - $item) { - $sql = "SELECT id, AVG(finalgrade) AS `avg`, COUNT(finalgrade) AS `count` + $sql = "SELECT itemid, AVG(finalgrade) AS avg, COUNT(finalgrade) AS count FROM {$CFG->prefix}grade_grades WHERE itemid = $itemid GROUP BY itemid";