From 3f0504912ffc969c527f4ef0887b7353a8b68c76 Mon Sep 17 00:00:00 2001 From: Vasily Komrakov Date: Sun, 7 May 2017 18:14:26 +0300 Subject: [PATCH] Fix sql. Remove excess "group by". --- library/attach_mod/displaying_torrent.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/library/attach_mod/displaying_torrent.php b/library/attach_mod/displaying_torrent.php index 2acd53104..8d59562d8 100644 --- a/library/attach_mod/displaying_torrent.php +++ b/library/attach_mod/displaying_torrent.php @@ -297,7 +297,6 @@ if ($tor_reged && $tor_info) { FROM " . BB_BT_TRACKER . " tr, " . BB_USERS . " u WHERE tr.topic_id = $tor_id AND u.user_id = tr.user_id - GROUP BY tr.ip, tr.user_id, tr.port, tr.seeder ORDER BY u.username LIMIT $show_peers_limit"; } else { @@ -308,7 +307,6 @@ if ($tor_reged && $tor_info) { FROM " . BB_BT_TRACKER . " tr LEFT JOIN " . BB_USERS . " u ON u.user_id = tr.user_id WHERE tr.topic_id = $tor_id - GROUP BY tr.ip, tr.user_id, tr.port, tr.seeder ORDER BY $full_mode_order $full_mode_sort_dir LIMIT $show_peers_limit"; }