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 ') AND `language_id` ="21"' at line 1 SQL: SELECT * FROM bc_translates WHERE `table_name` ="amplua" AND field_name IN("amplua") AND `item_id` IN () AND `language_id` ="21"