ROQL Select Query working in Connect Object Explorer but not in Custom Script
I am trying to fetch data from Contact and its child custom object.
My query is "Select ID , packageName$objectName$fieldName.fieldName1 , packageName$objectName$fieldName.fieldName2 from Contact where ContactID is not null LIMIT 10"
The same query is working in Connect object explorer but when i try it in custom script it says 'Unknown table or column 'packageName'.
Thanks in Advance!