Fix category count query for mysql

This commit is contained in:
fluffy 2012-06-21 08:52:50 -07:00
parent ece7871113
commit 7e454e815d
1 changed files with 1 additions and 1 deletions

View File

@ -1192,7 +1192,7 @@ class Pref_Feeds extends Protected_Handler {
print "</div>"; print "</div>";
$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 FROM ttrss_feed_categories AS c LEFT JOIN ttrss_feeds AS f ON
(f.cat_id = c.id) (f.cat_id = c.id)
WHERE c.owner_uid = ".$_SESSION["uid"]." WHERE c.owner_uid = ".$_SESSION["uid"]."