I have a LoginTime table like this:
id | user_id | datetime 1 | 1 | 2011-01-19 18:51:01 2 | 1 | 2011-01-19 18:51:02 3 | 1
DELETE FROM LoginTime WHERE user_id = 1 ORDER BY datetime ASC LIMIT 5