I'm trying to mimic this guy's query right here..
$topics_query = $db->sql_query("
SELECT
{$table_prefix}topics.topic_title,
{$table_prefix}users.username AS poster_name,
{$table_prefix}topics.topic_time,
{$table_prefix}posts_text.post_text AS topic_text,
{$table_prefix}topics.topic_views,
{$table_prefix}topics.topic_replies,
{$table_prefix}topics.topic_id,
{$table_prefix}posts_text.post_id,
{$table_prefix}topics.topic_poster AS poster_id
FROM
{$table_prefix}topics,
{$table_prefix}users,
{$table_prefix}posts_text
WHERE
{$table_prefix}topics.forum_id = {$forum_id} AND
{$table_prefix}users.user_id =
{$table_prefix}topics.topic_poster AND
{$table_prefix}posts_text.post_id =
{$table_prefix}topics.topic_first_post_id
ORDER BY topic_time DESC
LIMIT {$limit_count};");
I'm having trouble with the joins though, this is what I got so far..
$query = mysql_query("
SELECT topic_id, topic_title, topic_poster, topic_time, username
FROM phpbb_topics, phpbb_users
WHERE
ORDER BY topic_id DESC
LIMIT 0 , 5
") or die ('Error: '.mysql_error ());