two columns
This commit is contained in:
parent
98f0375e94
commit
e27ff02bb7
@ -638,12 +638,11 @@ class UserPage extends Extension
|
|||||||
$rows = $database->get_pairs("
|
$rows = $database->get_pairs("
|
||||||
SELECT
|
SELECT
|
||||||
address,
|
address,
|
||||||
COUNT(id) AS count,
|
COUNT(id) AS count
|
||||||
MAX(date_sent) AS most_recent
|
|
||||||
FROM score_log
|
FROM score_log
|
||||||
WHERE username=:username
|
WHERE username=:username
|
||||||
GROUP BY address
|
GROUP BY address
|
||||||
ORDER BY most_recent DESC", ["username"=>$duser->name]);
|
ORDER BY MAX(date_sent) DESC", ["username"=>$duser->name]);
|
||||||
return $rows;
|
return $rows;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user