diff --git a/include/functions.php b/include/functions.php index 38ccfe8ac..ba2e90bd4 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1458,6 +1458,7 @@ $from_where = "ttrss_entries.id = ttrss_user_entries.ref_id AND"; } else { $from_qpart = "ttrss_user_entries"; + $from_where = ""; } $query = "SELECT count(int_id) AS unread