1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 14:45:57 +00:00

Be explicit when id column is ambiguous

This commit is contained in:
Théophile Helleboid - chtitux
2018-12-08 22:36:03 +01:00
parent a0d332326c
commit c70dc852a1
2 changed files with 4 additions and 4 deletions

View File

@@ -141,7 +141,7 @@ class CCache {
$sth = $pdo->prepare("SELECT SUM(value) AS sv
FROM ttrss_counters_cache, ttrss_feeds
WHERE id = feed_id AND
WHERE ttrss_feeds.id = feed_id AND
(cat_id = :cat OR (:cat = 0 AND cat_id IS NULL)) AND
ttrss_counters_cache.owner_uid = :uid AND
ttrss_feeds.owner_uid = :uid");