From: fluffy Date: Thu, 21 Jun 2012 15:52:50 +0000 (-0700) Subject: Fix category count query for mysql X-Git-Tag: 1.6.0~207^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7e454e815dd67f0ac3804e213599be9bbbc2755e;p=tt-rss.git Fix category count query for mysql --- diff --git a/classes/pref_feeds.php b/classes/pref_feeds.php index bf9f18a9..1f875ba1 100644 --- a/classes/pref_feeds.php +++ b/classes/pref_feeds.php @@ -1192,7 +1192,7 @@ class Pref_Feeds extends Protected_Handler { print ""; - $result = db_query($this->link, "SELECT c.title, c.id,COUNT(f.*) AS count + $result = db_query($this->link, "SELECT c.title, c.id,COUNT(f.id) AS count FROM ttrss_feed_categories AS c LEFT JOIN ttrss_feeds AS f ON (f.cat_id = c.id) WHERE c.owner_uid = ".$_SESSION["uid"]."