:(

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: E:\wwwroot\lfipe.com\web\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 350

TRACE

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