As the title, says, will the following query work?
mysql_query("DELETE FROM table WHERE cat = '1' ORDER BY id LIMIT 1") or die(mysql_error());
I want to delete the oldest entry in the table which is in category 1. I do not want to run the code and delete my database.