query("SELECT p.Body FROM forums_posts as p JOIN forums_topics as t on p.TopicID = t.ID JOIN forums as f ON t.ForumID=f.ID WHERE p.ID='$PostID' AND f.MinClassRead<='$LoggedUser[Class]'"); list($Body) = $DB->next_record(MYSQLI_NUM); // This gets sent to the browser, which echoes it wherever echo trim($Body); ?>