"SELECT LAST_INSERT_ID() FROM table"