Database Error

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') ) order by article.create_time desc limit ?,?' at line 1

sql相关:

SQL: SELECT article.*,nav.title as nav from article LEFT join art_nav on article.id=art_nav.artid LEFT join nav on art_nav.navid=nav.id where ( art_nav.navid in () ) order by article.create_time desc limit ?,?
parameters: [0,20]

PHP Debug

No.FileLineCode
1/www/wwwroot/wantchinagreatagain.com/public/list.php3ly\LY->execute()
2/www/wwwroot/wantchinagreatagain.com/ly/LY.php193call_user_func_array()
3/www/wwwroot/wantchinagreatagain.com/application/index/controller/Index.php115ly\lib\DB->select()
4/www/wwwroot/wantchinagreatagain.com/ly/lib/DB.php588ly\lib\PDO->query()
5/www/wwwroot/wantchinagreatagain.com/ly/lib/PDO.php224ly\lib\PDO->init()
6/www/wwwroot/wantchinagreatagain.com/ly/lib/PDO.php160PDO->prepare()
7/www/wwwroot/wantchinagreatagain.com/ly/lib/PDO.php160break()