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('905760','905668','903775','905480','902621','905074','898791','905223','903226','904051','903855','903596','903240','902332','902931','902754','900914','902629','902547','902076','901753','833941','896859','900493','898332','900173','900170','898927','896194','896097','899085','899017','893366','898700','884374') 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 已经将此出错信息详细记录, 由此给您带来的访问不便我们深感歉意