Change various uses of GROUP BY 1,2,3 and similar to use the actual column names...
[lhc/web/wiklou.git] / includes / specials / SpecialMostimages.php
index 2fed0bd..6cfeb7a 100644 (file)
@@ -29,7 +29,7 @@ class MostimagesPage extends ImageQueryPage {
                                il_to as title,
                                COUNT(*) as value
                        FROM $imagelinks
-                       GROUP BY 1,2,3
+                       GROUP BY il_to
                        HAVING COUNT(*) > 1
                        ";
        }