Ok, i have fixed it, but it is soo easy that i will not relase a new relase only for this.
You must only replace all the code in the plugin called "Query for last page in forumhome" with this:
PHP Code:
if (!empty($forum['lastpostinfo']) AND $forum['lastpostinfo'] != $vbphrase['private'] AND $forum['lastpostinfo'] != $vbphrase['never'] AND $forum['lastpostinfo'] != '-' AND $vbulletin->options['tfseo_attivo'] AND $vbulletin->options['tfseo_riscrivi'] AND $vbulletin->options['tfseo_page_index'])
{
$tfseo_tot_post = $vbulletin->db->query_read_slave("
SELECT thread.replycount
FROM " . TABLE_PREFIX . "thread AS thread
WHERE threadid = '$lastpostinfo[lastthreadid]'
");
$a = mysql_fetch_assoc($tfseo_tot_post);
$a = implode($a);
$a = $a / $vbulletin->options['maxposts'];
$a = floor($a);
if ($a > 0)
{
$tfseo_total_page = $a+1;
$tfseo_lastpage = $vbulletin->options['tfseo_pagina'] . $tfseo_total_page . ".html";
}
}