I want to insert one record in each table from one select.
For example, insert in table "messages" and table "notifications" from table "users".
"notifications" need the LAST_INSERT_ID() to point to the message.
I can achieve one table like:
INSERT INTO message (`data1`, `data2`) SELECT "text", u.id FROM users u WHERE 1;
But don't know where to put the INSERT INTO for "notifications".