I am trying to run this query:
SELECT Id, Account.Primary_Email__c, Email FROM Contact where Primary_Indicator__c = true AND LastActivityDate = Last_week AND Email != Account.Primary_Email__c LIMIT 200
I am getting the following error:
Bind variables only allowed in Apex code
I would really appreciate if any one can explain why this query works in apex and cannot be run directly in SOQL editor.