I have a query similar to this in one of our apps,
List<Account> accountList = Database.query('SELECT Id,Name FROM Account WHERE Id IN:accIds');
But Checkmarx always gives SOQL Injection Error in report even when we are using variable binding. I also tried eascaping every single element in accIds, but still checkmarx gives SOQL Injection error. Can someone help in resolving this issue?