From e27ff02bb73cbc0a37824d72f383b85a34175f14 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 7 Jul 2019 16:02:33 +0100 Subject: [PATCH] two columns --- ext/user/main.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ext/user/main.php b/ext/user/main.php index 58c6ce38..23369414 100644 --- a/ext/user/main.php +++ b/ext/user/main.php @@ -638,12 +638,11 @@ class UserPage extends Extension $rows = $database->get_pairs(" SELECT address, - COUNT(id) AS count, - MAX(date_sent) AS most_recent + COUNT(id) AS count FROM score_log WHERE username=:username GROUP BY address - ORDER BY most_recent DESC", ["username"=>$duser->name]); + ORDER BY MAX(date_sent) DESC", ["username"=>$duser->name]); return $rows; }