I dont know the table structure, but below is an example:
select * from phpbb_users join phpbb_profile_fields_data on phpbb_profile_fields_data.user_id = phpbb_users.id
NB: Use '...left join...' if the 2nd table might not have a matching row
$sql = "
SELECT *
FROM phpbb_users
LEFT JOIN phpbb_profile_fields_data ON
phpbb_profile_fields_data.user_id = phpbb_users.id
";
// QUESTION: should the above be phpbb_users.user_id as you mentioned in comments
$query = mysql_query( $sql );
echo '<table>';
while( $row = mysql_fetch_assoc($query) )
{
echo '<tr>';
echo '<td>' . $row['user_avatar'] . '</td>';
// ...
echo '<td>' . $row['pf_officer'] . '</td>';
echo '</tr>';
}
echo '</table>';