:(

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

错误位置

FILE: /www/cbpadmin/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 169

TRACE

#0 /www/cbpadmin/ThinkPHP/Library/Think/Db/Driver.class.php(169): PDOStatement->execute()
#1 /www/cbpadmin/ThinkPHP/Library/Think/Db/Driver.class.php(930): Think\Db\Driver->query('SELECT a.id,a.p...', false)
#2 /www/cbpadmin/ThinkPHP/Library/Think/Model.class.php(760): Think\Db\Driver->select(Array)
#3 /www/cbpadmin/Application/Data/Model/ListModel.class.php(139): Think\Model->find()
#4 /www/cbpadmin/Application/Data/Model/ListModel.class.php(296): Data\Model\ListModel->getListType(1, 'charlie's chalk...', Array)
#5 /www/cbpadmin/Application/Data/Model/ListModel.class.php(108): Data\Model\ListModel->createListParameter(1, 'charlie's chalk...', '', 'USD', 'US', 'ALL', '', Array)
#6 /www/cbpadmin/Application/En/Controller/BrandController.class.php(31): Data\Model\ListModel->getListData(1, 'charlie's chalk...', '', 'US', 'ALL', 'USD', Array)
#7 /www/cbpadmin/Application/En/Controller/BrandController.class.php(69): En\Controller\BrandController->get_classify()
#8 /www/cbpadmin/Application/En/Controller/BrandController.class.php(158): En\Controller\BrandController->index()
#9 [internal function]: En\Controller\BrandController->subset()
#10 /www/cbpadmin/ThinkPHP/Library/Think/App.class.php(164): ReflectionMethod->invoke(Object(En\Controller\BrandController))
#11 /www/cbpadmin/ThinkPHP/Library/Think/App.class.php(202): Think\App::exec()
#12 /www/cbpadmin/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#13 /www/cbpadmin/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#14 /www/cbpadmin/index.php(65): require('/www/cbpadmin/T...')
#15 {main}