MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT g.goods_desc,g.goods_id,g.goods_sn, g.goods_name, g.goods_name_style,g.goods_index_color, g.market_price, g.is_new, g.is_best,g.tag_ids, g.is_hot,g.is_pro, g.shop_price AS org_price, IFNULL(mp.user_price, g.shop_price * '1') AS shop_price, g.promote_price, g.goods_type, g.promote_start_date, g.promote_end_date, g.goods_brief, g.goods_thumb , g.goods_img FROM `yishancare`.`zb_goods` AS g LEFT JOIN `yishancare`.`zb_goods_region` AS reg on reg.goods_id=g.goods_id LEFT JOIN `yishancare`.`zb_member_price` AS mp ON mp.goods_id = g.goods_id AND mp.user_rank = '0' WHERE g.is_on_sale = 1 AND g.is_alone_sale = 1 AND g.is_delete = 0 AND (g.cat_id IN ('5200') OR g.goods_id IN ('') ) AND (reg.region_id= or reg.region_id=0 ) ORDER BY g.is_new DESC, g.sort_order,g.goods_id desc LIMIT 9 ) [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 'or reg.region_id=0 ) ORDER BY g.is_new DESC, g.sort_order,g.goods_id desc LIMI' at line 1 ) [3] => Array ( [errno] => 1064 ) )