1064 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 'F??s?~%' and ps.products_size not like '%20g6?\\'F??s? NO%' and cg.product...' at line 1
in:
[select distinct c.categories_id, cd.categories_name, cg.master_categories_id from categories c, categories_description cd, products_color pccg, products_size ps, products cg where c.categories_id=cd.categories_id and cg.master_categories_id=c.categories_id and ps.products_size like '%~20g6�\\'F��s�~%' and ps.products_size not like '%20g6�\\'F��s� NO%' and cg.products_size_id = ps.products_size_id and pccg.products_color like '%Verde
�%' and cg.products_color_id = pccg.products_color_id and c.categories_id in (23,24,25,26,27,28,50,51,52) and cd.language_id='1' and c.categories_status='1' order by c.sort_order,cd.categories_id]