fix bug of get last id of insert, with mysql