Есть sql запрос, который выводит за месяц ТОП15 кол-ва релизов.select u.username, count(tor.topic_id) as kol_vo, sum(tor.size) as razmer from bb_bt_torrents tor, bb_users u where tor.poster_id = u.user_id and tor.reg_time > ". (TIMENOW - 86400) ." group by tor.poster_id
SELECT u.user_id, u.username, COUNT(tor.topic_id) as releases
FROM bb_users u
LEFT outer JOIN bb_bt_torrents tor ON ( tor.poster_id = u.user_id )
LEFT outer JOIN bb_bt_users bt ON ( bt.user_id = u.user_id )
WHERE u.user_active = 1
AND tor.reg_time >= UNIX_TIMESTAMP(CONCAT(YEAR(NOW()), '-', MONTH(NOW()), '-01'))
GROUP BY u.user_id
ORDER BY releases DESC
LIMIT 15