MySQL vers. 5.6.10
return correctly max userid row and related username value for same row,
WHILE for example:
will return max userid AND, the first username on table with lowest userid!
Code:
SELECT Max(user_id) as uid, Max(username) as uname_clean FROM table
WHILE for example:
Code:
SELECT username, Max(user_id) FROM table