From 687dca4cecc670a9017bde664973deed8cc20f36 Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Sat, 25 Nov 2017 01:46:33 +0100 Subject: [PATCH] fix: MySQL 5.7 incompatibility --- GameEngine/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Database.php b/GameEngine/Database.php index 523d7816..c3041e3f 100755 --- a/GameEngine/Database.php +++ b/GameEngine/Database.php @@ -4993,7 +4993,7 @@ References: User ID/Message ID, Mode } } - $q = "SELECT CONCAT(type, \"=\", Count(type)) FROM " . TB_PREFIX . "bdata where wid = $wid and type IN(".implode(', ', $type).") and master = 0"; + $q = "SELECT CONCAT(type, \"=\", Count(type)) FROM " . TB_PREFIX . "bdata where wid = $wid and type IN(".implode(', ', $type).") and master = 0 GROUP BY type"; $result = mysqli_query($this->dblink, $q); $newresult = [];