系统发生错误

错误位置: FILE: /data/www/version/www_deploy/beddybear_www20200105/_framework/core/driver/mysqli.class.php LINE: 60 ErrorCode: 2045

[ 错误信息 ]

执行mysqli::query()出现错误: 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 status = 'enabled' AND id < 19 ORDER BY id DESC LIMIT 1) UNION ALL (SELECT i' at line 1
原SQL: (SELECT id FROM b_news WHERE category_id = AND status = 'enabled' AND id < 19 ORDER BY id DESC LIMIT 1) UNION ALL (SELECT id FROM b_news WHERE category_id = AND status = 'enabled' AND id > 19 ORDER BY id ASC LIMIT 1)

[ TRACE ]

#0 /data/www/version/www_deploy/beddybear_www20200105/_framework/core/model.class.php(286): Core_Driver_Mysqli->query('(SELECT id FROM...')
#1 /data/www/version/www_deploy/beddybear_www20200105/web/app/extend/news.class.php(105): Core_Model->query('(SELECT id FROM...')
#2 /data/www/version/www_deploy/beddybear_www20200105/web/app/module/news/detail.php(5): Extend_News->getNextPrevHTML('19', NULL)
#3 /data/www/version/www_deploy/beddybear_www20200105/_framework/core/dispatcher.class.php(60): require_once('/data/www/versi...')
#4 /data/www/version/www_deploy/beddybear_www20200105/web/index.php(8): Core_Dispatcher->Run()
#5 {main}