From 31b7cf6337b85426240bb6604bd8376e2b417df1 Mon Sep 17 00:00:00 2001 From: Ruan Date: Sat, 21 Feb 2015 10:08:51 +0200 Subject: [PATCH] Allow multiple warnings for the same name --- warnings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warnings.php b/warnings.php index ffd3bc1..09ed916 100644 --- a/warnings.php +++ b/warnings.php @@ -7,7 +7,7 @@ // <<-----------------mysql Database Connection------------>> // require 'includes/data/database.php'; -$sql = 'SELECT time,until,reason,name,banned_by_name FROM ' . $table_warnings . ' INNER JOIN ' . $table_history . ' on ' . $table_warnings . '.uuid=' . $table_history . '.uuid WHERE active=1 GROUP BY name ORDER BY time DESC LIMIT 20'; +$sql = 'SELECT time,until,reason,name,banned_by_name FROM ' . $table_warnings . ' INNER JOIN ' . $table_history . ' on ' . $table_warnings . '.uuid=' . $table_history . '.uuid WHERE active=1 ORDER BY time DESC LIMIT 20'; if(!$result = $conn->query($sql)) { die('Query error [' . $conn->error . ']');