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('2133086','2133084','2133030','2132954','2132950','2132948','2132843','2132842','2132625','2132623','2132622','2132615','2132614','2132587','2132583','2132581','2132430','2132429','2132423','2132293','2132292','2132287','2132283','2132278','2132258','2132117','2132113','2132108','2132003','2132001','2131983','2131978','2131977','2131976','2131952') 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 已经将此出错信息详细记录, 由此给您带来的访问不便我们深感歉意