:(

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 and onnav = 1 ) ORDER BY sort asc, id desc' at line 1

错误位置

FILE: /usr/home/byu7069990001/htdocs/include/core/Library/Think/Db/Driver.class.php  LINE: 169

TRACE

#0 /usr/home/byu7069990001/htdocs/include/core/Library/Think/Db/Driver.class.php(169): PDOStatement->execute()
#1 /usr/home/byu7069990001/htdocs/include/core/Library/Think/Db/Driver.class.php(935): Think\Db\Driver->query('SELECT * FROM `...', false)
#2 /usr/home/byu7069990001/htdocs/include/core/Library/Think/Model.class.php(579): Think\Db\Driver->select(Array)
#3 /usr/home/byu7069990001/htdocs/apps/Home/Controller/CategoryController.class.php(51): Think\Model->select()
#4 [internal function]: Home\Controller\CategoryController->index()
#5 /usr/home/byu7069990001/htdocs/include/core/Library/Think/App.class.php(164): ReflectionMethod->invoke(Object(Home\Controller\CategoryController))
#6 /usr/home/byu7069990001/htdocs/include/core/Library/Think/App.class.php(202): Think\App::exec()
#7 /usr/home/byu7069990001/htdocs/include/core/Library/Think/Think.class.php(120): Think\App::run()
#8 /usr/home/byu7069990001/htdocs/include/core/index.php(113): Think\Think::start()
#9 /usr/home/byu7069990001/htdocs/index.php(35): require('/usr/home/byu70...')
#10 {main}