Browse Source

Delete extra GROUP BY

Visman 1 year ago
parent
commit
268ca03d2a
2 changed files with 0 additions and 2 deletions
  1. 0 1
      app/Models/User/UpdateCountPosts.php
  2. 0 1
      app/Models/User/UpdateCountTopics.php

+ 0 - 1
app/Models/User/UpdateCountPosts.php

@@ -56,7 +56,6 @@ class UpdateCountPosts extends Action
                 INNER JOIN ::topics AS t ON t.id=p.topic_id
                 INNER JOIN ::forums AS f ON f.id=t.forum_id
                 WHERE p.poster_id=::users.id AND f.no_sum_mess=0
-                GROUP BY p.poster_id
             ), 0)
             WHERE ' . $where;
 

+ 0 - 1
app/Models/User/UpdateCountTopics.php

@@ -55,7 +55,6 @@ class UpdateCountTopics extends Action
                 FROM ::topics AS t
                 INNER JOIN ::posts AS p ON t.first_post_id=p.id
                 WHERE p.poster_id=::users.id AND t.moved_to=0
-                GROUP BY p.poster_id
             ), 0)
             WHERE ' . $where;