MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT min(IF(g.model_price < 1, g.shop_price)) AS min, max(IF(g.model_price < 1, g.shop_price, g.model_price < 2)) as max FROM `hopemall_com_hk`.`dsc_goods` AS g WHERE (g.cat_id IN ('8','360','427','428','430','432','433','434','435','436','437','438','355','399','401','402','403','404','405','406','407','408','409','410','411','412','353','368','371','373','375','376','378','380','382','384','386','387','389','391','392','393','394','396','397','398','357','413','414','415','416','417','418','419','420','359','421','422','423','424','425','426','364','449','450','452','453','366','457','459','460','461','462','464','465','467','468','469','470','471','472') OR g.goods_id IN ('') ) AND g.is_delete = 0 AND g.is_on_sale = 1 AND g.is_show = 1 AND g.is_alone_sale = 1 ) [2] => Array ( [error] => 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 ')) AS min, max(IF(g.model_price < 1, g.shop_price, g.model_price < 2)) as max ' at line 1 ) [3] => Array ( [errno] => 1064 ) )