Fix capture of changes after an INSERT with fixed ID, where LAST_INSERT_ID() does not return the correct ID.