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('1827265','1829971','1805203','1824793','1824597','1824167','1824134','1812418','1823176','1819232','1822565','1823183','1820934','1820904','1819361','1821110','1822333','1820849','1822242','1822280','1815598','1821135','1819192','1820680','1811703','1820797','1815507','1817573','1819888','1816161','1790818','1819177','1819366','1820207','1820179') 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 已经将此出错信息详细记录, 由此给您带来的访问不便我们深感歉意