I am running a sample query in salesforce using jquery +Ajax but one of the query is giving me an error.
query:
select id from document__c where id not in (select entityid from topicassignment)
Kindly let me know the cause and resolution:
Error running the query: error,
Bad Request, [{"message":"Implementation restriction: TopicAssignment only allows security evaluation for non-admin users when either (1) LIMIT is specified and at most 1000 or (2) WHERE is specified and filter on Id or Entity","errorCode":"MALFORMED_QUERY"}]