I'm getting error while moving to prod.
ERROR - Didn't understand relationship 'DB_Line_Item__r' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
My query is as below -
tc = [SELECT id,Name,Vendor_Code__c,Total__c, Debit_Note_Date__c,Category_Manager__c,Vendor_Name__c,Parent_Category__c,Promotion__c,Department__c,Category1__c,(SELECT id,Adpro__c,Amount__c,Cost_Center__c,CurrencyIsoCode,Currency__c,Debit_Note__c,Description__c,Description_Model__c,name, GL__c,GP__c,LP__c,Provision__c,Ref__c,Total__c FROM DB_Line_Item__r ) FROM Debit_Note__c where ID =: id];
Please help