From 0ef57926dd05aa391ebe9e91c4f12ba6e989d720 Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Mon, 22 May 2017 11:25:02 +0200 Subject: [PATCH] Fix: incorrectly shown latest position --- helpers/position.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/position.php b/helpers/position.php index be8bb52..f67db0c 100644 --- a/helpers/position.php +++ b/helpers/position.php @@ -158,7 +158,7 @@ LEFT JOIN `" . self::$db->table('users') . "` u ON (p.user_id = u.id) LEFT JOIN `" . self::$db->table('tracks') . "` t ON (p.track_id = t.id) $where - ORDER BY p.time, p.id DESC LIMIT 1"; + ORDER BY p.time DESC, p.id DESC LIMIT 1"; $this->loadWithQuery($query, $params); return $this; }