query(" SELECT m.Body FROM pm_messages as m JOIN pm_conversations_users AS u ON m.ConvID=u.ConvID WHERE m.ID='$PostID' AND u.UserID=".$LoggedUser['ID']); list($Body) = $DB->next_record(MYSQLI_NUM); // This gets sent to the browser, which echoes it wherever echo trim($Body); ?>