prova così:
SELECT MAX(id) FROM tabella;


[EDIT] scusa marco80, avevo già postato e non mi ero accorto che avevi già risp.


ciao