two columns

This commit is contained in:
Shish 2019-07-07 16:02:33 +01:00
parent 98f0375e94
commit e27ff02bb7

View File

@ -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;
}