update to try SERVER variable instead of $query_var.