$vbulletin->$db->query_write("UPDATE " . TABLE_PREFIX . "user SET minvites='minvites + 1' WHERE userid = " . $userinfo['referrerid'] . " LIMIT 1");