Fixed last user fetching on index.
This commit is contained in:
parent
88dfe7a950
commit
af60ea5693
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue