summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index ba0fd6b1d..d37f4bdf4 100644
--- a/functions.php
+++ b/functions.php
@@ -2115,7 +2115,7 @@
$result = db_query($link, "SELECT COUNT(post_int_id) AS unread
FROM ttrss_tags,ttrss_user_entries,ttrss_entries
- WHERE tag_name = '$feed' AND post_int_id = int_id AND ref_id = id
+ WHERE tag_name = '$feed' AND post_int_id = int_id AND ref_id = ttrss_entries.id
AND unread = true AND $age_qpart AND
ttrss_tags.owner_uid = " . $_SESSION["uid"]);
}