A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OR `ade_categories`.`id` IN (SELECT id' at line 6

SELECT `ade_categories`.`title`, `ade_categories`.`slug` FROM ade_categories JOIN `st_store_categories` ON `st_store_categories`.`id_category` = `ade_categories`.`id` JOIN `st_store` ON `st_store`.`id` = `st_store_categories`.`id_store` WHERE ( ade_categories.id = OR `ade_categories`.`id` IN (SELECT id FROM ade_categories WHERE id_relation = )) AND `ade_categories`.`id_relation` IN (SELECT id FROM ade_categories WHERE ade_categories.slug = "espaco-para-eventos" GROUP BY id ) AND `ade_categories`.`deleted` IS NULL GROUP BY `ade_categories`.`id` ORDER BY `ade_categories`.`title` ASC

Filename: /var/www/html/2019/modules/experiencias/models/Filtros_m.php

Line Number: 76