5
\modules\newbb\class\class.forumposts.php
At 98 line.
//$sql = 'SELECT p.*, t.post_text FROM '.$db->prefix('newbb_posts').'p, '.$db->prefix('newbb_posts_text')." t WHERE p.topic_id=$topic_id ANDp.post_id = t.post_id ORDER BY p.post_id $order";
$sql = 'SELECT p.*, t.post_text FROM '.$db->prefix('bb_posts').' p, '.$db->prefix('bb_posts_text').' t WHERE p.topic_id='.$topic_id.' AND p.post_id = t.post_id ORDER BY p.post_id ';