:(

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 ischeck=1 and id!= ) ORDER BY id desc LIMIT 5' at line 1

错误位置

FILE: /var/www/virtual/tulaituqu/home/wwwroot/Core/Library/Think/Db/Driver.class.php  LINE: 169

TRACE

#0 /var/www/virtual/tulaituqu/home/wwwroot/Core/Library/Think/Db/Driver.class.php(169): PDOStatement->execute()
#1 /var/www/virtual/tulaituqu/home/wwwroot/Core/Library/Think/Db/Driver.class.php(935): Think\Db\Driver->query('SELECT * FROM `...', false)
#2 /var/www/virtual/tulaituqu/home/wwwroot/Core/Library/Think/Model.class.php(579): Think\Db\Driver->select(Array)
#3 /var/www/virtual/tulaituqu/home/wwwroot/Application/Home/Controller/InfoController.class.php(1294): Think\Model->select()
#4 /var/www/virtual/tulaituqu/home/wwwroot/Application/Home/Controller/InfoController.class.php(250): Home\Controller\InfoController->detail('xq', '585')
#5 [internal function]: Home\Controller\InfoController->xq()
#6 /var/www/virtual/tulaituqu/home/wwwroot/Core/Library/Think/App.class.php(164): ReflectionMethod->invoke(Object(Home\Controller\InfoController))
#7 /var/www/virtual/tulaituqu/home/wwwroot/Core/Library/Think/App.class.php(202): Think\App::exec()
#8 /var/www/virtual/tulaituqu/home/wwwroot/Core/Library/Think/Think.class.php(120): Think\App::run()
#9 /var/www/virtual/tulaituqu/home/wwwroot/Core/init.php(97): Think\Think::start()
#10 /var/www/virtual/tulaituqu/home/wwwroot/index.php(9): require('/var/www/virtua...')
#11 {main}