When users are deleted from the db, the result of the
query "SELECT * FROM users where id < 2000" might
not be the user with the highest id; Adding a new user in
such a situation results in : Duplicate Entry.
To solve this problem the query could be:
"SELECT * FROM users where id < 2000 order by id"
Logged In: YES
user_id=62339
Yet another rone to look at.