query($post_id_sql); if (DB::iserror($q)) { die($q->getMessage()); } $post_text_sql = "SELECT post_id,post_subject FROM `phpbb_posts_text` WHERE post_id = "; while ($q->fetchInto($row)) { $post_id = $row[0]; $topic_id = $row[1]; $sql = $post_text_sql . $post_id; $q2 = $db->query($sql); if (DB::iserror($q2)) { die($q2->getMessage()); } while ($q2->fetchInto($text)) { $post_text = $text[1] ?>