Apart from not bulkifying your code, it looks like you are not referencing the account in your where clause. Try the below. List<Contact> lstCon = [SELECT Id, Admin_User__c, Account_Expiration__c FROM Contact WHERE Account = :acc.Id AND Admin_User__c = true];