:(

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 date>'' order by date asc limit 1' at line 1 [ SQL语句 ] : select title,file_name from article where status='1' and lang=1 and cat_id= and date>'' order by date asc limit 1

错误位置

FILE: /home/chinanet114/public_html/ThinkPHP_dwz_v2/Lib/Driver/Db/DbMysql.class.php  LINE: 320

TRACE

[17-08-23 12:26:08] /home/chinanet114/public_html/ThinkPHP_dwz_v2/Lib/Driver/Db/DbMysql.class.php (320) trace(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 date>'' order by date asc limit 1' at line 1
[ SQL语句 ] : select title,file_name from article where status='1' and lang=1 and cat_id= and date>'' order by date asc limit 1, , ERR)
[17-08-23 12:26:08] /home/chinanet114/public_html/ThinkPHP_dwz_v2/Lib/Driver/Db/DbMysql.class.php (107) DbMysql->error()
[17-08-23 12:26:08] /home/chinanet114/public_html/ThinkPHP_dwz_v2/Lib/Core/Model.class.php (1078) DbMysql->query(select title,file_name from article where status='1' and lang=1 and cat_id= and date>'' order by date asc limit 1)
[17-08-23 12:26:08] /home/chinanet114/public_html/hongyuan-pad.com/Lib/Action/Home/_ArticleAction.class.php (66) Model->query(select title,file_name from article where status='1' and lang=1 and cat_id= and date>'' order by date asc limit 1)
[17-08-23 12:26:08] /home/chinanet114/public_html/hongyuan-pad.com/Lib/Action/Home/EmptyAction.class.php (59) _ArticleAction->details(How to order, 14, 1)
[17-08-23 12:26:08] /home/chinanet114/public_html/ThinkPHP_dwz_v2/Lib/Core/Action.class.php (195) EmptyAction->_empty(How to order, )
[17-08-23 12:26:08] () Action->__call(How to order, )
[17-08-23 12:26:08] /home/chinanet114/public_html/ThinkPHP_dwz_v2/Lib/Core/App.class.php (192) ReflectionMethod->invokeArgs(, Array)
[17-08-23 12:26:08] /home/chinanet114/public_html/ThinkPHP_dwz_v2/Lib/Core/App.class.php (212) App::exec()
[17-08-23 12:26:08] /home/chinanet114/public_html/ThinkPHP_dwz_v2/Lib/Core/Think.class.php (39) App::run()
[17-08-23 12:26:08] /home/chinanet114/public_html/ThinkPHP_dwz_v2/Common/runtime.php (243) Think::start()
[17-08-23 12:26:08] /home/chinanet114/public_html/ThinkPHP_dwz_v2/ThinkPHP.php (30) require(/home/chinanet114/public_html/ThinkPHP_dwz_v2/Common/runtime.php)
[17-08-23 12:26:08] /home/chinanet114/public_html/hongyuan-pad.com/index.php (6) require(/home/chinanet114/public_html/ThinkPHP_dwz_v2/ThinkPHP.php)