INSERT INTO `table1`
SET `field1` = 'value1',
`field2` = 'value2',
`field3` = 'value3';
INSERT INTO `table2`
SET id = (SELECT LAST_INSERT_ID()),
`field` = 'value';
i'm trying to use DB::query(Database::INSERT,$query);
- it doesn't work
$query - i write on the top of message
Use
ORM
module like: