:(

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 bid= ) LIMIT 1' at line 1

错误位置

FILE: /www/wwwroot/www.jnbdc.cn/core/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 169

TRACE

#0 /www/wwwroot/www.jnbdc.cn/core/ThinkPHP/Library/Think/Db/Driver.class.php(169): PDOStatement->execute()
#1 /www/wwwroot/www.jnbdc.cn/core/ThinkPHP/Library/Think/Db/Driver.class.php(930): Think\Db\Driver->query('SELECT COUNT(*)...', false)
#2 /www/wwwroot/www.jnbdc.cn/core/ThinkPHP/Library/Think/Model.class.php(965): Think\Db\Driver->select(Array)
#3 /www/wwwroot/www.jnbdc.cn/core/ThinkPHP/Library/Think/Model.class.php(228): Think\Model->getField('COUNT(*) AS tp_...')
#4 /www/wwwroot/www.jnbdc.cn/wlfcw/Apps/Home/Controller/HomeController.class.php(229): Think\Model->__call('count', Array)
#5 /www/wwwroot/www.jnbdc.cn/wlfcw/Apps/Home/Controller/HomeController.class.php(229): Think\Model->count()
#6 [internal function]: Home\Controller\HomeController->shangpin()
#7 /www/wwwroot/www.jnbdc.cn/core/ThinkPHP/Library/Think/App.class.php(164): ReflectionMethod->invoke(Object(Home\Controller\HomeController))
#8 /www/wwwroot/www.jnbdc.cn/core/ThinkPHP/Library/Think/App.class.php(202): Think\App::exec()
#9 /www/wwwroot/www.jnbdc.cn/core/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#10 /www/wwwroot/www.jnbdc.cn/core/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#11 /www/wwwroot/www.jnbdc.cn/index.php(214): require('/www/wwwroot/ww...')
#12 {main}