$vbulletin->db->query_read("update " . TABLE_PREFIX . "user set `membergroupids`='6', `$pointfield`=$points-$amount where userid='$userid'");