I started today with this sql-statement, for getting the topposter in each forum but it doesn't really work.
Anyone can help me?
Quote:
$topforumposters = $DB_site->query_first('SELECT count(p.postid) FROM post p LEFT JOIN thread t ON (p.threadid=t.threadid) WHERE t.forumid=$forum[forumid] ORDER BY count(p.postid) DESC');
$topforumposter = $topforumposters['count'];
|