You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'OR cate like '%-%') AND (sale_flg_1 = 1 OR prefecture = 19 OR area_all LIKE '%19' at line 4