I have read here that bind variables can be used in dynamic SOQL (which I am aware of) But on the code:
List<sObject> testQuery = Database.query('SELECT id from Account where Name = :a.Name');
It says that variable does not exist.
Though I know the workaround to put that in the string with the binding of the variable then pass in the whole string in the query.
Question is when does it became a "Bind Variable Field" and when does it became a "Bind Variable"