diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index 6a4b6008bd..028456c246 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -1554,7 +1554,7 @@ function sync($mode, $where_type = '', $where_ids = '', $resync_parents = false, FROM ' . TOPICS_TABLE . ' t WHERE ' . $db->sql_in_set('t.forum_id', $forum_ids) . ' AND t.topic_approved = 1 - AND t.topic_status <> ' . ITEM_MOVED .' + AND t.topic_status <> ' . ITEM_MOVED . ' GROUP BY t.forum_id'; }