SELECT p.pro_id as id,p.address,c.name as city,r.name as region,p.title,p.otitle,p.picurl,p.pro_price,p.area_min,p.area_max FROM ja_product AS p LEFT JOIN ja_product_city AS c ON c.`city_id`=p.`city_id` LEFT JOIN ja_product_city AS r ON r.`city_id`=p.`region_id` WHERE p.`is_delete`=1 ORDER BY updatetime DESC为什么关闭调试模式就报错呢?ERR: SQLSTATE[42000]: Syntax error or access violation: 1064 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 p LEFT JOIN ja_product_city AS c ON c.`city_id`=p.`city_id` LEFT JOIN ja_prod' at line 1
最佳答案