I\'ve got this test table:
CREATE TABLE IF NOT EXISTS `test` ( `id` INT(10) AUTO_INCREMENT, PRIMARY KEY (`id
you have to combine
INSERT INTO test (title) VALUES ('test');SELECT LAST_INSERT_ID();
Then you will get the last insert id