diff --git a/sections/reports/stats.php b/sections/reports/stats.php index 69e1c714..84371c63 100644 --- a/sections/reports/stats.php +++ b/sections/reports/stats.php @@ -152,12 +152,15 @@
query(" SELECT u.Username, COUNT(f.LastPostAuthorID) as Trashed FROM forums_topics AS f LEFT JOIN users_main AS u ON u.ID = f.LastPostAuthorID - WHERE f.ForumID = 12 + WHERE f.ForumID IN ($TrashForumIDs) GROUP BY f.LastPostAuthorID ORDER BY Trashed DESC LIMIT 30");