:(

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 'ORDER BY add_time asc LIMIT 1' at line 1 [ SQL语句 ] : SELECT * FROM `y_link` WHERE add_time>1499324881 and sh=1 and class1= ORDER BY add_time asc LIMIT 1

错误位置

FILE: D:\biyuanwanfang\ThinkPHP\Lib\Driver\Db\DbMysql.class.php  LINE: 320

TRACE

[26-04-14 12:53:04] D:\biyuanwanfang\ThinkPHP\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 'ORDER BY add_time asc LIMIT 1' at line 1
[ SQL语句 ] : SELECT * FROM `y_link` WHERE add_time>1499324881 and sh=1 and class1= ORDER BY add_time asc LIMIT 1 , , ERR)
[26-04-14 12:53:04] D:\biyuanwanfang\ThinkPHP\Lib\Driver\Db\DbMysql.class.php (107) DbMysql->error()
[26-04-14 12:53:04] D:\biyuanwanfang\ThinkPHP\Lib\Core\Db.class.php (739) DbMysql->query(SELECT * FROM `y_link` WHERE add_time>1499324881 and sh=1 and class1= ORDER BY add_time asc LIMIT 1 )
[26-04-14 12:53:04] D:\biyuanwanfang\ThinkPHP\Lib\Core\Model.class.php (597) Db->select(Array)
[26-04-14 12:53:04] D:\biyuanwanfang\home\Lib\Action\JoinAction.class.php (34) Model->find()
[26-04-14 12:53:04] () JoinAction->show()
[26-04-14 12:53:04] D:\biyuanwanfang\ThinkPHP\Lib\Core\App.class.php (169) ReflectionMethod->invoke()
[26-04-14 12:53:04] D:\biyuanwanfang\ThinkPHP\Lib\Core\App.class.php (205) App::exec()
[26-04-14 12:53:04] D:\biyuanwanfang\ThinkPHP\Lib\Core\Think.class.php (39) App::run()
[26-04-14 12:53:04] D:\biyuanwanfang\ThinkPHP\Common\runtime.php (243) Think::start()
[26-04-14 12:53:04] D:\biyuanwanfang\ThinkPHP\ThinkPHP.php (30) require(D:\biyuanwanfang\ThinkPHP\Common\runtime.php)
[26-04-14 12:53:04] D:\biyuanwanfang\index.php (5) require(D:\biyuanwanfang\ThinkPHP\ThinkPHP.php)