Invalid query: 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 categories_in_parent_visibility = '1' AND language_id = 2 ORDER BY categor' at line 1
Whole query: select sort_order, categories_name, category_class, categories_indic_link, categories_in_parent_visibility, categories_excel_file, categories_calameo_id from mxp_categories as c INNER JOIN mxp_categories_description as d ON c.categories_id = d.categories_id WHERE c.categories_id in () AND categories_in_parent_visibility = '1' AND language_id = 2 ORDER BY categories_name, parent_id, sort_order, categories_name LIMIT 6