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('2053563','2053243','1890144','1797037','2053764','2048618','2050157','2051379','2050343','2042043','2043056','2044908','2042886','2034407','1990440','1975439','1960963','1909749','1878846','1959602','1959180','1958449','1954872','1942945','1889564','1928489','1917804','1926138','1925802','1918181','1917871','1910460','1912212','1911564','1898718') 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 已经将此出错信息详细记录, 由此给您带来的访问不便我们深感歉意