} else { $resulte = dbquery(" SELECT tf.forum_id, tt.thread_id, tt.thread_subject, COUNT(tp.post_id) as count_posts FROM ".$db_prefix."forums tf INNER JOIN ".$db_prefix."threads tt USING(forum_id) INNER JOIN ".$db_prefix."posts tp USING(thread_id) WHERE forum_access<='".iUSER."' GROUP BY thread_id ORDER BY count_posts DESC, thread_lastpost DESC [color=red]LIMIT 10[/color] "); if (dbrows($resulte) != 0) { echo "
- $itemsubjectt | [".($datae['count_posts']-1)."] | \n