I've got the following MySQL query:
SELECT user_id, score, time
FROM tests_1 T
WHERE T.score = (
SELECT MAX(T2.score)
FROM tests_1 T2
WHERE T2.user_id = T.user_id
)
ORDER BY score DESC, time ASC;
How do I add the 'username' column from the 'users' table ON users.user_id = tests_1.user_id?