:(

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

错误位置

FILE: /home/bae/app/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 162

TRACE

#0 /home/bae/app/ThinkPHP/Library/Think/Db/Driver.class.php(162): PDOStatement->execute()
#1 /home/bae/app/ThinkPHP/Library/Think/Db/Driver.class.php(908): Think\Db\Driver->query('SELECT * FROM `...', false)
#2 /home/bae/app/ThinkPHP/Library/Think/Model.class.php(761): Think\Db\Driver->select(Array)
#3 /home/bae/app/Application/Home/Controller/ProductController.class.php(108): Think\Model->find()
#4 [internal function]: Home\Controller\ProductController->product()
#5 /home/bae/app/ThinkPHP/Library/Think/App.class.php(156): ReflectionMethod->invoke(Object(Home\Controller\ProductController))
#6 /home/bae/app/ThinkPHP/Library/Think/App.class.php(194): Think\App::exec()
#7 /home/bae/app/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#8 /home/bae/app/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#9 /home/bae/app/index.php(40): require('/home/bae/app/T...')
#10 {main}