From your error...
$news3_post = $db->query_first('SELECT pagetext FROM ' . TABLE_PREFIX . 'post WHERE 1 AND threadid = ' . $news3[threadid] . ' ORDER BY dateline ASC LIMIT 0 , 1');
The $news3[threadid] variable is returning nothing. Check the query for $news3 and make sure everything is valid. I ran that exact query on my database and it worked fine... unless there are no posts in that forum.
|