:(

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

错误位置

FILE: /data/home/byu2563000001/htdocs/Core/Library/Think/Db/Driver.class.php  LINE: 169

TRACE

#0 /data/home/byu2563000001/htdocs/Core/Library/Think/Db/Driver.class.php(169): PDOStatement->execute()
#1 /data/home/byu2563000001/htdocs/Core/Library/Think/Db/Driver.class.php(935): Think\Db\Driver->query('SELECT `subject...', false)
#2 /data/home/byu2563000001/htdocs/Core/Library/Think/Model.class.php(962): Think\Db\Driver->select(Array)
#3 /data/home/byu2563000001/htdocs/Tingke/Index/Controller/CourseController.class.php(945): Think\Model->getField('subject_name')
#4 [internal function]: Index\Controller\CourseController->syncclass()
#5 /data/home/byu2563000001/htdocs/Core/Library/Think/App.class.php(164): ReflectionMethod->invoke(Object(Index\Controller\CourseController))
#6 /data/home/byu2563000001/htdocs/Core/Library/Think/App.class.php(202): Think\App::exec()
#7 /data/home/byu2563000001/htdocs/Core/Library/Think/Think.class.php(120): Think\App::run()
#8 /data/home/byu2563000001/htdocs/Core/ThinkPHP.php(97): Think\Think::start()
#9 /data/home/byu2563000001/htdocs/index.php(6): require('/data/home/byu2...')
#10 {main}