>>400Oh, I thought you wanted ALL of the posts. Try "SELECT COUNT(*) FROM ".SQL_TABLE." WHERE parent=?;" and just put the thread number in the $sth->execute() part.
"SELECT COUNT(*) FROM ".SQL_TABLE." WHERE parent=?;"
$sth->execute()