:(

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 ') order by a.listorder DESC ,a.id DESC' at line 1 [ SQL语句 ] : select a.id,a.link,a.revsiteid,f.title as ftitle,f.link as flink,f.img_id as fimgid,a.U_siteID as usiteid,a.title from yyb_friendship_link a LEFT JOIN user_friendlink f ON a.U_siteID = f.U_siteID where a.onlines=1 and ( a.showType in (190562) ) and (a.U_siteID in (58602,61314) OR a.revsiteid in (58602,61314)) and (( a.apstatus=1 and a.restatus=1 and (a.type=2 or a.type=3) ) or a.type=1 ) and a.onlines=1 and a.id in () order by a.listorder DESC ,a.id DESC

错误位置

FILE: /var/www/html/template/desktop/ThinkPHP/Library/Think/Db/Driver.class.php  LINE: 353

TRACE

#0 /var/www/html/template/desktop/ThinkPHP/Library/Think/Db/Driver.class.php(353): E('1064:You have a...')
#1 /var/www/html/template/desktop/ThinkPHP/Library/Think/Db/Driver.class.php(183): Think\Db\Driver->error()
#2 /var/www/html/template/desktop/ThinkPHP/Library/Think/Model.class.php(1382): Think\Db\Driver->query('select a.id,a.l...')
#3 /var/www/html/template/desktop/Application/Common/Common/function.php(561): Think\Model->query('select a.id,a.l...')
#4 /var/www/html/template/desktop/Application/Home/Controller/PStaticController.class.php(299): getList(Array, 'links', ' where a.onlin...', 1, 4, 'a.id,a.link,a.r...', NULL, '@!jw400', Array, 'classifyDisplay', 'linksList', ' DESC ', '504980')
#5 /var/www/html/template/desktop/Application/Home/Controller/PStaticController.class.php(134): Home\Controller\PStaticController->getPageListData(Array, 'pc', Array, Array, Array, 'e9663c470835523...', 'ql0uukt3', Array)
#6 /var/www/html/template/desktop/Application/Home/Controller/StaticController.class.php(255): Home\Controller\PStaticController->page_source_data_list(Array, Array, 'ql0uukt3', Array, Array)
#7 /var/www/html/template/desktop/Application/Home/Controller/StaticController.class.php(119): Home\Controller\StaticController->nppage(Array, Array, Array)
#8 [internal function]: Home\Controller\StaticController->index()
#9 /var/www/html/template/desktop/ThinkPHP/Library/Think/App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\StaticController))
#10 /var/www/html/template/desktop/ThinkPHP/Library/Think/App.class.php(110): Think\App::invokeAction(Object(Home\Controller\StaticController), 'index')
#11 /var/www/html/template/desktop/ThinkPHP/Library/Think/App.class.php(204): Think\App::exec()
#12 /var/www/html/template/desktop/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#13 /var/www/html/template/desktop/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#14 /var/www/html/e9663c470835523f028567acb2769e34/index.php(25): require('/var/www/html/t...')
#15 {main}

XML 地图