From c8e52b1171f20d76c05a66320718515846ee06dc Mon Sep 17 00:00:00 2001 From: Ruan Date: Wed, 18 Feb 2015 19:29:48 +0200 Subject: [PATCH] Fix SQL error --- bans.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bans.php b/bans.php index 8e3040c..1185594 100644 --- a/bans.php +++ b/bans.php @@ -7,11 +7,11 @@ // <<-----------------mysql Database Connection------------>> // require 'includes/data/database.php'; -$sql = 'SELECT time,until,reason,name,banned_by_name FROM bans WHERE active=1 INNER JOIN history on bans.uuid=history.uuid ORDER BY time DESC LIMIT 20'; +$sql = 'SELECT time,until,reason,name,banned_by_name FROM bans INNER JOIN history on bans.uuid=history.uuid WHERE active=1 ORDER BY time DESC LIMIT 20'; $retval = mysql_query($sql, $conn); if (!$retval) { - die('Could not get data: ' . mysql_error($sql, $conn)); + die('Could not get data: ' . mysql_error($conn)); } ?>