:(

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 [ SQL语句 ] : SELECT id as cl_id,cate_id,c_name,c_username,c_position,c_scale,c_written,c_range FROM `tmj_clause` WHERE ( id= ) LIMIT 1

错误位置

FILE: /www/wwwroot/hatchgroup.cn/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 394

TRACE

#0 /www/wwwroot/hatchgroup.cn/ThinkPHP/Library/Think/Db/Driver.class.php(394): E('1064:You have a...')
#1 /www/wwwroot/hatchgroup.cn/ThinkPHP/Library/Think/Db/Driver.class.php(198): Think\Db\Driver->error()
#2 /www/wwwroot/hatchgroup.cn/ThinkPHP/Library/Think/Db/Driver.class.php(1067): Think\Db\Driver->query('SELECT id as cl...', false, false)
#3 /www/wwwroot/hatchgroup.cn/ThinkPHP/Library/Think/Model.class.php(816): Think\Db\Driver->select(Array)
#4 /www/wwwroot/hatchgroup.cn/App/Home/Model/ClauseModel.class.php(127): Think\Model->find()
#5 /www/wwwroot/hatchgroup.cn/App/Home/Controller/WorkController.class.php(30): Home\Model\ClauseModel->getclause()
#6 [internal function]: Home\Controller\WorkController->work_detail()
#7 /www/wwwroot/hatchgroup.cn/ThinkPHP/Library/Think/App.class.php(178): ReflectionMethod->invoke(Object(Home\Controller\WorkController))
#8 /www/wwwroot/hatchgroup.cn/ThinkPHP/Library/Think/App.class.php(113): Think\App::invokeAction(Object(Home\Controller\WorkController), 'work_detail')
#9 /www/wwwroot/hatchgroup.cn/ThinkPHP/Library/Think/App.class.php(213): Think\App::exec()
#10 /www/wwwroot/hatchgroup.cn/ThinkPHP/Library/Think/Think.class.php(136): Think\App::run()
#11 /www/wwwroot/hatchgroup.cn/ThinkPHP/ThinkPHP.php(100): Think\Think::start()
#12 /www/wwwroot/hatchgroup.cn/index.php(27): require('/www/wwwroot/ha...')
#13 {main}