I use the following to select the last event a user added
SELECT MAX(user_event_id) from user_events where user_id = 63
On this row there is also a column event_title yet if i try:
SELECT MAX(user_event_id), event_title from user_events where user_id = 63
the event_title returned does not correspond with the user_event_id
Is it possible to return the last user_event_id and event_title?
This solution doesn’t need ORDER BY, which would run slowly if the table is long.