proviamo così:
Codice PHP:
SELECT FROM tua_tabella 
WHERE id 
= (SELECT MAX(idFROM tua_tabella