:(

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 'and id!= ) LIMIT 10' at line 1

错误位置

FILE: D:\wwwroot\md010\wwwroot\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 157

TRACE

#0 D:\wwwroot\md010\wwwroot\ThinkPHP\Library\Think\Db\Driver.class.php(157): PDO->prepare('SELECT * FROM `...')
#1 D:\wwwroot\md010\wwwroot\ThinkPHP\Library\Think\Db\Driver.class.php(936): Think\Db\Driver->query('SELECT * FROM `...', false)
#2 D:\wwwroot\md010\wwwroot\ThinkPHP\Library\Think\Model.class.php(579): Think\Db\Driver->select(Array)
#3 D:\wwwroot\md010\wwwroot\Application\Home\Controller\GoodsController.class.php(592): Think\Model->select()
#4 [internal function]: Home\Controller\GoodsController->brand()
#5 D:\wwwroot\md010\wwwroot\ThinkPHP\Library\Think\App.class.php(164): ReflectionMethod->invoke(Object(Home\Controller\GoodsController))
#6 D:\wwwroot\md010\wwwroot\ThinkPHP\Library\Think\App.class.php(202): Think\App::exec()
#7 D:\wwwroot\md010\wwwroot\ThinkPHP\Library\Think\Think.class.php(122): Think\App::run()
#8 D:\wwwroot\md010\wwwroot\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#9 D:\wwwroot\md010\wwwroot\index.php(49): require('D:\\wwwroot\\md01...')
#10 {main}