From a28856d4ecc64143969e47343ca29acec35d1278 Mon Sep 17 00:00:00 2001 From: Leander Date: Fri, 21 Apr 2017 10:04:52 +0200 Subject: [PATCH] T201704211004 --- allhighscores.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allhighscores.php b/allhighscores.php index 0ca3939..f47e1e5 100644 --- a/allhighscores.php +++ b/allhighscores.php @@ -25,7 +25,7 @@ if($cid == -1) { } } else { $overview = $db->query('SELECT u."name", COALESCE(h."score", -1) AS "score" - FROM "Users" u LEFT OUTER JOIN "Highscores" h ON u."ID" = h."Users_ID" + FROM "Users" u RIGHT OUTER JOIN "Highscores" h ON u."ID" = h."Users_ID" WHERE h."Categories_ID" = $1 ORDER BY COALESCE(h."score", -1) DESC LIMIT $2 OFFSET $3', array($cid, $limit, $offset))['data'];