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 ('6','347','349','350','351','352','354','356','358','361','363','365','367','369','370','372','374','377','383','385','395','444','448','451','454','455','1591','1595','1607','463','473','466','474','475','478','480','485','486','488','494','498','502','504','505','507','508','510','512','513','516','517','520','522','526','530','532','542','544','1596','630','641','657','663','664','665','666','668','669','670','671','672','673','674','675','676','547','592','550','554','555','557','560','562','564','566','567','568','569','570','571','580','582','583','590','1442','1443','1444','1445','1446','1447','1448','1449','1450','1451','1452','1453','1454','1455','1456') OR g.goods_id IN ('1141') ) 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 ) )