Discuz! Database Error
The database has encountered a problem. Need Help?

Error messages:
  • [Type] 查询语句错误
  • [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 'rank,\x0D\x0A @current_sid := p.sid\x0D\x0A FROM (\x0D' at line 8
  • [Query] SELECT a.item, a.sid, a.count FROM ( SELECT p.item, p.sid, p.count, p.updatedate, @rank := IF(@current_sid = p.sid, @rank + 1, 1) AS rank, @current_sid := p.sid FROM ( SELECT item, sid, COUNT(*) as count, MAX(updatedate) as updatedate FROM ui_riposte WHERE `type` = 'thread' AND status = 1 and `sid` IN('2305202','2386470','2217453','2384649','2384885','2308874','2199880','2310593','2332032','2342136','2340601','2323990','2052187','2329522','2335337','2334501','2333454','2224261','2331034','2332014','2319894','2325049','2063201','2148161','2327887','2324085','2321226','2325130','2318419','2071973','2320660','2144291','2322202','2321952','2217273') GROUP BY sid, item ) p JOIN (SELECT @current_sid := NULL, @rank := 0) AS vars ORDER BY p.sid, p.count DESC, p.updatedate ASC ) a WHERE a.rank <= 3
 
Program messages:
  • [Line: 0110]forum.php(require)
  • [Line: 0867]source/module/forum/forum_forumdisplay.php(DB::query)


bbs.gter.net 已经将此出错信息详细记录, 由此给您带来的访问不便我们深感歉意