Add query an affilaites user id using a refid