My apex code is throwing a SOQL 101 error on line 5. What can I do to resolve this?
public class YodleeEscrowRefresh {
Public void escrowrefresh(){
List<Bank_Facilities__c> bflist = [Select Id, Financial__c from Bank_Facilities__c Where Financial__c != Null];
for(Bank_Facilities__c bf : bflist) {
List<Financial__c> Financials = new List<Financial__c>([select id, Account__c from Financial__c where id =: bf.Financial__c AND Ready_for_Refresh__c=true limit 1]);
if (Financials.size()>0)
{
List<Account> Acc = new List<Account>([select id, cin__c from Account where id =: Financials[0].Account__c limit 1]);
if (Acc.size()>0)
{
YodleeBankStmtRefresh ybs = new YodleeBankStmtRefresh();
system.debug('Account Details:' + acc[0].Id + ':' + acc[0].cin__c);
ybs.bankstmtrefresh(acc[0].Id);
system.debug('Account Details:' + acc[0].Id + ':' + acc[0].cin__c);
}
}
}
}
}