Fix warning about STRICT_ALL_TABLES in mysql

Confirmed that this fix works