From af60ea56934c2eead1518bd0283c7a5ecb0ab83d Mon Sep 17 00:00:00 2001 From: flashwave Date: Sat, 14 Jul 2018 21:13:56 +0200 Subject: [PATCH] Fixed last user fetching on index. --- public/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php index 25341b2d..c8ddb12b 100644 --- a/public/index.php +++ b/public/index.php @@ -44,7 +44,7 @@ $lastUser = $db->query(' FROM `msz_users` as u LEFT JOIN `msz_roles` as r ON r.`role_id` = u.`display_role` - ORDER BY u.`created_at` DESC + ORDER BY u.`user_id` DESC LIMIT 1 ')->fetch(PDO::FETCH_ASSOC);