diff options
Diffstat (limited to 'comments.php')
-rw-r--r-- | comments.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/comments.php b/comments.php index 3d8c9cccf..c020a84ce 100644 --- a/comments.php +++ b/comments.php @@ -321,7 +321,8 @@ SELECT com.id AS comment_id ON u.'.$conf['user_fields']['id'].' = com.author_id WHERE '.implode(' AND ', $page['where_clauses']).' - GROUP BY comment_id + GROUP BY comment_id, com.image_id, ic.category_id, com.author, + com.author_id, com.date, com.content, com.validated ORDER BY '.$page['sort_by'].' '.$page['sort_order']; if ('all' != $page['items_number']) { |