:(

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 '%s and down=0 ) ORDER BY publish_date' at line 1 [ SQL语句 ] : SELECT * FROM `article` WHERE ( cat_id=%s and down=0 ) ORDER BY publish_date

错误位置

FILE: D:\wwwroot\kwtcjt.com\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 350

TRACE

#0 D:\wwwroot\kwtcjt.com\ThinkPHP\Library\Think\Db\Driver.class.php(350): E('1064:You have a...')
#1 D:\wwwroot\kwtcjt.com\ThinkPHP\Library\Think\Db\Driver.class.php(180): Think\Db\Driver->error()
#2 D:\wwwroot\kwtcjt.com\ThinkPHP\Library\Think\Db\Driver.class.php(946): Think\Db\Driver->query('SELECT * FROM `...', false)
#3 D:\wwwroot\kwtcjt.com\ThinkPHP\Library\Think\Model.class.php(579): Think\Db\Driver->select(Array)
#4 D:\wwwroot\kwtcjt.com\Application\Common\Model\SysModel.class.php(185): Think\Model->select()
#5 D:\wwwroot\kwtcjt.com\Application\Common\Common\function.php(596): Common\Model\SysModel->getNext(NULL, NULL)
#6 D:\wwwroot\kwtcjt.com\Application\Runtime\Cache\Home\9316c8a318b6a0ff6ec7ea4992007fd3.php(17): getNextArticle(NULL, NULL)
#7 D:\wwwroot\kwtcjt.com\ThinkPHP\Library\Think\Storage\Driver\File.class.php(80): include('D:\\wwwroot\\kwtc...')
#8 [internal function]: Think\Storage\Driver\File->load('./Application/R...', Array, NULL, 'tpl')
#9 D:\wwwroot\kwtcjt.com\ThinkPHP\Library\Think\Storage.class.php(37): call_user_func_array(Array, Array)
#10 D:\wwwroot\kwtcjt.com\ThinkPHP\Library\Think\Template.class.php(77): Think\Storage::__callstatic('load', Array)
#11 D:\wwwroot\kwtcjt.com\ThinkPHP\Library\Think\Template.class.php(77): Think\Storage::load('./Application/R...', Array, NULL, 'tpl')
#12 D:\wwwroot\kwtcjt.com\ThinkPHP\Library\Behavior\ParseTemplateBehavior.class.php(32): Think\Template->fetch('./Web/tpl/News/...', Array, '')
#13 D:\wwwroot\kwtcjt.com\ThinkPHP\Library\Think\Hook.class.php(119): Behavior\ParseTemplateBehavior->run(Array)
#14 D:\wwwroot\kwtcjt.com\ThinkPHP\Library\Think\Hook.class.php(89): Think\Hook::exec('Behavior\\ParseT...', 'view_parse', Array)
#15 D:\wwwroot\kwtcjt.com\ThinkPHP\Library\Think\View.class.php(126): Think\Hook::listen('view_parse', Array)
#16 D:\wwwroot\kwtcjt.com\ThinkPHP\Library\Think\View.class.php(72): Think\View->fetch('', '', '')
#17 D:\wwwroot\kwtcjt.com\ThinkPHP\Library\Think\Controller.class.php(56): Think\View->display('', '', '', '', '')
#18 D:\wwwroot\kwtcjt.com\ThinkPHP\Library\Think\Controller.class.php(168): Think\Controller->display()
#19 [internal function]: Think\Controller->__call('news-view-en', '')
#20 D:\wwwroot\kwtcjt.com\ThinkPHP\Library\Think\App.class.php(114): ReflectionMethod->invokeArgs(Object(Home\Controller\EmptyController), Array)
#21 D:\wwwroot\kwtcjt.com\ThinkPHP\Library\Think\App.class.php(204): Think\App::exec()
#22 D:\wwwroot\kwtcjt.com\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#23 D:\wwwroot\kwtcjt.com\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#24 D:\wwwroot\kwtcjt.com\index.php(24): require('D:\\wwwroot\\kwtc...')
#25 {main}