function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Naresh ChandaNaresh Chanda 

System.QueryException: expecting a colon, found <column name>

When trying to execute a batch with the query - 

'Select id,name,billingstreet,billingcity,billingpostalcode,BillingState,BillingCountry,EQProcessedTime__c,'+
                        'HasEQProcessed__c, Fax, Phone, CurrencyIsoCode from ' +objToMigrate+' WHERE createddate > EQProcessedTime__c OR LastModifiedDate > EQProcessedTime__c  order by createddate asc limit '+numRecsToMigrate; 

I get the below error - 
FATAL_ERROR|System.QueryException: expecting a colon, found 'EQProcessedTime__c'.  EQProcessedTime__c is a custom column on Account that contains the timestamp the account is processed. Can anyone please advise on how to solve this?