MySQL Error!
MySQL error in file: /pages/ajax_list.php at line 7
Error Number: 1064
The Error returned was:
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 (DATEDIFF(NOW(), ads.date) < 360 || DATEDIFF(NOW(), ads.date_update) < 36' at line 1
SQL query:

SELECT ads.id,ads.date,ads.date_update,ads.date_org,ads.title,ads.title_seo,ads.text,ads.price,ads.views,ads.views_today,ads.type,ads.url,ads.is_images,ads.active,ads.checked,ads.deleted,ads.cron,ads.lat,ads.lng,ads.user_id,ads.hash,ads.prem_bold,ads.prem_up,ads.prem_stars,ads.test , IF(UNIX_TIMESTAMP(prem_up) > UNIX_TIMESTAMP(CURRENT_TIMESTAMP),UNIX_TIMESTAMP(prem_up) - UNIX_TIMESTAMP(CURRENT_TIMESTAMP),0) AS prem_up_diff FROM ads LEFT JOIN ads_cities ON ads.id = ads_cities.ad_id WHERE ads.active = 1 AND (ads_cities.city_id IN ()) AND (DATEDIFF(NOW(), ads.date) < 360 || DATEDIFF(NOW(), ads.date_update) < 360) AND (is_images OR UNIX_TIMESTAMP(prem_up) - UNIX_TIMESTAMP(CURRENT_TIMESTAMP) > 0)