Code: SQL
SELECT * FROM newuser ORDER BY entrydate LIMIT 1

You may also use "SELECT * FROM newuser ORDER BY entrydate" but use if() instead of while()