:(

Uncaught Think\Exception: 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 'or (A.catid = 832 and B.attr_value = '初级' ) ) GROUP BY A.id' at line 1 [ SQL语句 ] : SELECT A.id,A.catid,A.title,A.pics,B.attr_value,B.attr_id FROM lk_product as A left join lk_goods_attr as B on A.id=B.goods_id WHERE ( or (A.catid = 832 and B.attr_value = '初级' ) ) GROUP BY A.id in /www/wwwroot/www.97php.com/ThinkPHP/Common/functions.php:102 Stack trace: #0 /www/wwwroot/www.97php.com/ThinkPHP/Library/Think/Db/Driver.class.php(350): E('1064:You have a...') #1 /www/wwwroot/www.97php.com/ThinkPHP/Library/Think/Db/Driver.class.php(180): Think\Db\Driver->error() #2 /www/wwwroot/www.97php.com/ThinkPHP/Library/Think/Db/Driver.class.php(946): Think\Db\Driver->query('SELECT A.id,A.c...', false) #3 /www/wwwroot/www.97php.com/ThinkPHP/Library/Think/Model.class.php(585): Think\Db\Driver->select(Array) #4 /www/wwwroot/www.97php.com/Application/

错误位置

FILE: /www/wwwroot/www.97php.com/ThinkPHP/Common/functions.php  LINE: 102