Cleaned up the query to get Uncleared Transactions