list<string> lst=new list<string>();
lst.add('name');
system.debug('lst[]'+lst[0]);
system.debug([select count() from account where lst[0]!='' limit 1]);
I am getting below error
Line: 4, Column: 51 unexpected token: '['
How to use List Index in soql.Please suggest