From 68aa7b4952737e5c079a30df8d356e4960f4540f Mon Sep 17 00:00:00 2001 From: nikrou Date: Fri, 25 Jun 2010 21:18:58 +0000 Subject: Bug 1740 fixed : Rating page returns database error Query had incomplete group by clause git-svn-id: http://piwigo.org/svn/branches/2.1@6606 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/rating.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/admin/rating.php b/admin/rating.php index 1d7fa8c26..6fa1c585c 100644 --- a/admin/rating.php +++ b/admin/rating.php @@ -171,7 +171,12 @@ SELECT i.id, FROM '.RATE_TABLE.' AS r LEFT JOIN '.IMAGES_TABLE.' AS i ON r.element_id = i.id WHERE 1 = 1 ' . $page['user_filter'] . ' - GROUP BY r.element_id + GROUP BY i.id, + i.path, + i.file, + i.tn_ext, + i.average_rate, + r.element_id ORDER BY ' . $available_order_by[$order_by_index][1] .' LIMIT '.$elements_per_page.' OFFSET '.$start.' ;'; -- cgit v1.2.3