{__NOLAYOUT__} 系统发生错误

:(

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 'and `cate_id` = )' at line 2 [ SQL语句 ] : select `id`,`name` from `smx_article` where `id` =( select max(id) from `smx_article` where `status` = 1 and `id` < and `cate_id` = )

错误位置

FILE: E:\wwwroot\shanmenxiakeji\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 350

TRACE

#0 E:\wwwroot\shanmenxiakeji\ThinkPHP\Library\Think\Db\Driver.class.php(350): E('1064:You have a...')
#1 E:\wwwroot\shanmenxiakeji\ThinkPHP\Library\Think\Db\Driver.class.php(180): Think\Db\Driver->error()
#2 E:\wwwroot\shanmenxiakeji\ThinkPHP\Library\Think\Model.class.php(1382): Think\Db\Driver->query('select `id`,`na...')
#3 E:\wwwroot\shanmenxiakeji\App\Home\Controller\EmptyController.class.php(99): Think\Model->query('select `id`,`na...')
#4 E:\wwwroot\shanmenxiakeji\App\Home\Controller\EmptyController.class.php(30): Home\Controller\EmptyController->details()
#5 [internal function]: Home\Controller\EmptyController->info()
#6 E:\wwwroot\shanmenxiakeji\ThinkPHP\Library\Think\App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\EmptyController))
#7 E:\wwwroot\shanmenxiakeji\ThinkPHP\Library\Think\App.class.php(110): Think\App::invokeAction(Object(Home\Controller\EmptyController), 'info')
#8 E:\wwwroot\shanmenxiakeji\ThinkPHP\Library\Think\App.class.php(204): Think\App::exec()
#9 E:\wwwroot\shanmenxiakeji\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#10 E:\wwwroot\shanmenxiakeji\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#11 E:\wwwroot\shanmenxiakeji\index.php(26): require('E:\\wwwroot\\shan...')
#12 {main}