From: Greg Sabino Mullane Date: Mon, 26 Feb 2007 13:06:22 +0000 (+0000) Subject: Add column alias, fixes bug 9104 X-Git-Tag: 1.31.0-rc.0~53957 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=46956edf7386e63571daa1a193c2973d382dc17b;p=lhc%2Fweb%2Fwiklou.git Add column alias, fixes bug 9104 --- diff --git a/includes/SpecialCategories.php b/includes/SpecialCategories.php index 13866a39e3..1cebdcc44d 100644 --- a/includes/SpecialCategories.php +++ b/includes/SpecialCategories.php @@ -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') ); }