SELECT FROM SELECT * FROM event_registration WHERE event_id = 'estopen2012' ORDER BY submit_time DESC : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM SELECT * FROM event_registration WHERE event_id = 'estopen2012' ORDER BY su' at line 1