Add column alias, fixes bug 9104
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Mon, 26 Feb 2007 13:06:22 +0000 (13:06 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Mon, 26 Feb 2007 13:06:22 +0000 (13:06 +0000)
includes/SpecialCategories.php

index 13866a3..1cebdcc 100644 (file)
@@ -20,7 +20,7 @@ class CategoryPager extends AlphabeticPager {
        function getQueryInfo() {
                return array(
                        'tables' => array('categorylinks'),
-                       'fields' => array('cl_to','count(*) count'),
+                       'fields' => array('cl_to','count(*) AS count'),
                        'options' => array('GROUP BY' => 'cl_to')
                        );
        }