Fix category count query for mysql
This commit is contained in:
parent
ece7871113
commit
7e454e815d
1 changed files with 1 additions and 1 deletions
|
@ -1192,7 +1192,7 @@ class Pref_Feeds extends Protected_Handler {
|
|||
|
||||
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
|
||||
(f.cat_id = c.id)
|
||||
WHERE c.owner_uid = ".$_SESSION["uid"]."
|
||||
|
|
Loading…
Reference in a new issue