MySQL & MariaDB error 1675 ER_BINLOG_UNSAFE_NONTRANS_AFTER_TRANS
MySQLStatement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction.
MariaDBStatement is unsafe because it accesses a non-transactional table after accessing a transactional table within the same transaction
How the message changed between versions