Qrong query: 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 ') AND tb2.`status`='enabled' AND tb3.`filter`='enabled' GROUP BY tb2.`id` ' at line 5
SELECT tb2.`id`,tb3.`hide` FROM `a_afield-ref` as tb1 LEFT JOIN `a_afields` as tb2 ON tb1.`aid`=tb2.`id` LEFT JOIN `a_af-cat-rels` as tb3 ON tb2.`id`=tb3.`aid` WHERE tb1.`iid` IN() AND tb2.`status`='enabled' AND tb3.`filter`='enabled' GROUP BY tb2.`id` ORDER BY tb3.`order`