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 ('505') 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 ) ) 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 ('505') 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 ) [4] => Array ( [message] => MySQL Query Error ) [5] => Array ( [sql] => DELETE FROM `hopemall_com_hk`.`dsc_sessions` WHERE expiry < 1732001521 ) [6] => Array ( [error] => Table 'dsc_sessions' is marked as crashed and should be repaired ) [7] => Array ( [errno] => 1194 ) )