:(

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 '%d ) ORDER BY sort asc,id desc' at line 1 [ SQL语句 ] : SELECT * FROM `chpar_upload_file` WHERE ( is_deleted=0 and con_attr="pc_img" and con_id=%d ) ORDER BY sort asc,id desc

错误位置

FILE: /www/wwwroot/china-gsie.com/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 350

TRACE

#0 /www/wwwroot/china-gsie.com/ThinkPHP/Library/Think/Db/Driver.class.php(350): E('1064:You have a...')
#1 /www/wwwroot/china-gsie.com/ThinkPHP/Library/Think/Db/Driver.class.php(180): Think\Db\Driver->error()
#2 /www/wwwroot/china-gsie.com/ThinkPHP/Library/Think/Db/Driver.class.php(946): Think\Db\Driver->query('SELECT * FROM `...', false)
#3 /www/wwwroot/china-gsie.com/ThinkPHP/Library/Think/Model.class.php(579): Think\Db\Driver->select(Array)
#4 /www/wwwroot/china-gsie.com/Application/En/Controller/ProductsController.class.php(50): Think\Model->select()
#5 /www/wwwroot/china-gsie.com/Application/En/Controller/ProductsController.class.php(222): En\Controller\ProductsController->index()
#6 [internal function]: En\Controller\ProductsController->categoryIndex('index', '')
#7 /www/wwwroot/china-gsie.com/ThinkPHP/Library/Think/App.class.php(171): ReflectionMethod->invokeArgs(Object(En\Controller\ProductsController), Array)
#8 /www/wwwroot/china-gsie.com/ThinkPHP/Library/Think/App.class.php(110): Think\App::invokeAction(Object(En\Controller\ProductsController), 'categoryIndex')
#9 /www/wwwroot/china-gsie.com/ThinkPHP/Library/Think/App.class.php(204): Think\App::exec()
#10 /www/wwwroot/china-gsie.com/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#11 /www/wwwroot/china-gsie.com/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#12 /www/wwwroot/china-gsie.com/index.php(38): require('/www/wwwroot/ch...')
#13 {main}