HIBA:
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 '' at line 1

 SQL   SELECT a.id AS id FROM objects_accomms AS a LEFT JOIN objects_objects AS o ON o.id=a.object_id LEFT JOIN geos_cities AS c ON c.id=o.seat_city_id WHERE a.id IN (2,4,9,10,13,17,18) AND c.country_id IN (1,5) ORDER BY