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 ') LIMIT 1' at line 4
SELECT MAX(IF(tp.`id`,tp.`price`,tb1.`price`)) as 'max',MIN(IF(tp.`id`,tp.`price`,tb1.`price`)) as 'min' FROM `a_items` as tb1 LEFT JOIN `a_price-promo` AS tp ON tb1.`id`= tp.`iid` AND '1582412793' BETWEEN tp.`from-date` AND tp.`to-date` WHERE tb1.`status`='enabled' AND tb1.`id` IN () LIMIT 1