Change this:
PHP Code:
$getnewsql=$DB_site->query("SELECT * FROM post WHERE threadid='$newthreadid' ORDER BY postid ASC LIMIT 1");
while ($getnew=$DB_site->fetch_array($getnewsql)) {
$newpagetext=$getnew[pagetext];
$newpagetext=bbcodeparse($newpagetext);
eval("\$newthisweek = \"".gettemplate('home_newthisweek')."\";");
}
to:
PHP Code:
$getnewsql=$DB_site->query_first("SELECT * FROM post WHERE threadid='$newthreadid' ORDER BY postid ASC LIMIT 1");
$newpagetext=$getnew[pagetext];
$newpagetext=bbcodeparse($newpagetext);
eval("\$newthisweek .= \"".gettemplate('home_newthisweek')."\";");