fix query for find users by events and payment status for mail