From: Andrew Dolgov Date: Tue, 19 Jun 2007 12:54:11 +0000 (+0100) Subject: getFeedCounters: fix invalid query X-Git-Tag: 1.2.12~3 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=bc60fda3cfc285b8cc1c7ce49ba66bcebaeee0e7;p=tt-rss.git getFeedCounters: fix invalid query --- diff --git a/functions.php b/functions.php index 253223ac..b00c6b0d 100644 --- a/functions.php +++ b/functions.php @@ -1996,7 +1996,7 @@ $result = db_query($link, "SELECT ttrss_feeds.id, SUBSTRING(ttrss_feeds.last_updated,1,19) AS last_updated, last_error, - COUNT(ttrss_entries.id) + COUNT(ttrss_entries.id) AS count FROM ttrss_feeds LEFT JOIN ttrss_user_entries ON (ttrss_user_entries.feed_id = ttrss_feeds.id AND ttrss_user_entries.owner_uid = ttrss_feeds.owner_uid