$query = "SELECT p.post_id, pt.bbcode_uid, p.post_time, pt.post_text, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_edit_time, p.poster_id AS user_id, u.username, t.topic_title, t.topic_id, f.forum_name, f.forum_id
                        FROM nuke_bbposts p
                        LEFT JOIN nuke_bbposts_text AS pt ON p.post_id = pt.post_id
                        LEFT JOIN nuke_users AS u ON p.poster_id = u.user_id
                        LEFT JOIN nuke_bbtopics AS t ON p.topic_id = t.topic_id