ERROR -2array(4) { [0]=> array(1) { ["message"]=> string(17) "MySQL Query Error" } [1]=> array(1) { ["sql"]=> string(330) "MASTERSELECT SUM(goods_number) AS number, SUM(goods_price * goods_number) AS amount, SUM(IF(exchange_points,exchange_price,goods_price)*goods_number) as ex_price,SUM(exchange_points*goods_number) as ex_points FROM `g5wholesale7`.`ecs_cart` WHERE session_id = 'c54dcef8f2bfa29f85c2393008452ed2' AND rec_type = 'CART_GENERAL_GOODS'" } [2]=> array(1) { ["error"]=> string(226) "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 'MASTERSELECT SUM(goods_number) AS number, SUM(goods_price * goods_number) AS amo' at line 1" } [3]=> array(1) { ["errno"]=> int(1064) } }