mysql insert into select id from another table