Really simple but really useful
In MySQL find the last entry in a table
SELECT * FROM `table` WHERE id=(SELECT MAX(id) FROM `table`);