:(

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 a.status = 1 ) LIMIT 1' at line 1

错误位置

FILE: E:\wwwroot\zsw.weixinwangpan.cn\Core\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 169

TRACE

#0 E:\wwwroot\zsw.weixinwangpan.cn\Core\ThinkPHP\Library\Think\Db\Driver.class.php(169): PDOStatement->execute()
#1 E:\wwwroot\zsw.weixinwangpan.cn\Core\ThinkPHP\Library\Think\Db\Driver.class.php(935): Think\Db\Driver->query('SELECT a.*,b.* ...', false)
#2 E:\wwwroot\zsw.weixinwangpan.cn\Core\ThinkPHP\Library\Think\Model.class.php(759): Think\Db\Driver->select(Array)
#3 E:\wwwroot\zsw.weixinwangpan.cn\Core\Tpcms\Home\Controller\AdorncompanyController.class.php(38): Think\Model->find()
#4 [internal function]: Home\Controller\AdorncompanyController->index()
#5 E:\wwwroot\zsw.weixinwangpan.cn\Core\ThinkPHP\Library\Think\App.class.php(164): ReflectionMethod->invoke(Object(Home\Controller\AdorncompanyController))
#6 E:\wwwroot\zsw.weixinwangpan.cn\Core\ThinkPHP\Library\Think\App.class.php(202): Think\App::exec()
#7 E:\wwwroot\zsw.weixinwangpan.cn\Core\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#8 E:\wwwroot\zsw.weixinwangpan.cn\Core\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#9 E:\wwwroot\zsw.weixinwangpan.cn\index.php(22): require('E:\\wwwroot\\zsw....')
#10 {main}