Saluton,
mysql_insert_id() est, à ma connaissance, une fonction php.
En MySQL c'est LAST_INSERT_ID()