diff --git a/bans.php b/bans.php index 1185594..3a5f934 100644 --- a/bans.php +++ b/bans.php @@ -7,7 +7,7 @@ // <<-----------------mysql Database Connection------------>> // require 'includes/data/database.php'; -$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'; +$sql = 'SELECT time,until,reason,name,banned_by_name FROM bans INNER JOIN history on bans.uuid=history.uuid WHERE active=1 GROUP BY name ORDER BY time DESC LIMIT 20'; $retval = mysql_query($sql, $conn); if (!$retval) { @@ -62,7 +62,7 @@ if (!$retval) { $expiresResult = date('F j, Y, g:i a', $expiresConvert); ?> - " . $banned; ?> " . $row['banned_by_name']; ?>