SELECT f.*, p.post_time, p.post_username, u.username, u.customers_id
FROM (( phpbb_forums f
LEFT JOIN phpbb_posts p ON p.post_id = f.forum_last_post_id )
LEFT JOIN customers u ON u.customers_id = p.poster_id )
ORDER BY f.cat_id, f.forum_order Line : 174 File : index.php