diff --git a/lib/Database.php b/lib/Database.php index 4a35a6e3..97c851c3 100644 --- a/lib/Database.php +++ b/lib/Database.php @@ -2210,9 +2210,9 @@ class Database { label, sum(hidden) as hidden, sum(case when \"read\" = 1 and hidden = 0 then 1 else 0 end) as marked - from arsse_marks - join arsse_subscriptions on arsse_subscriptions.id = arsse_marks.subscription - join arsse_label_members on arsse_label_members.article = arsse_marks.article + from arsse_articles + join arsse_subscriptions on arsse_subscriptions.id = arsse_articles.subscription + join arsse_label_members on arsse_label_members.article = arsse_articles.id where arsse_subscriptions.owner = ? group by label ) as mark_stats on mark_stats.label = arsse_labels.id @@ -2274,9 +2274,9 @@ class Database { label, sum(hidden) as hidden, sum(case when \"read\" = 1 and hidden = 0 then 1 else 0 end) as marked - from arsse_marks - join arsse_subscriptions on arsse_subscriptions.id = arsse_marks.subscription - join arsse_label_members on arsse_label_members.article = arsse_marks.article + from arsse_articles + join arsse_subscriptions on arsse_subscriptions.id = arsse_articles.subscription + join arsse_label_members on arsse_label_members.article = arsse_articles.id where arsse_subscriptions.owner = ? group by label ) as mark_stats on mark_stats.label = arsse_labels.id