$threadid = $vbulletin->db->query_first(" SELECT threadid FROM " . TABLE_PREFIX . "thread WHERE pollid = '".$pollida."' ");
$checkpost = $vbulletin->db->query_read(" SELECT username FROM " . TABLE_PREFIX . "post WHERE threadid = ".$threadid['threadid']."