Fixed STRICT_TRANS_TABLES bug