No it must be LAST_INSERT_ID this function will give the last inserted id from the auto_increment column.
I found this function in a book tried everything but it does not want to work.
LAST_INSERT_ID()
RETURNS: int
Is there an other way to get the last insert of a table?
Thanks