mysql - I'm using mybb, how can I find the top 5 threads that has the most readers currently? -


i'm using mybb, want show on website homepage threads has readers currently.

i'm assuming have query session table i'm not sure how should it

the mysql result need, should like:

------------------------- |title          | count | ------------------------- |thread title | 1234  | |thread b title | 913   | |thread c title | 678   | |another  title | 593   | |different title| 550   | ------------------------- 

thank :)

i've tested on board, think need:

select count(*) count, subject title `mybb_sessions`,`mybb_threads` location1 = tid group `location1` order count(*) desc limit 10 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -