It sounds like your query is dynamically changing the data sources it is accessing. Is that the case?
To solve this, you can either make your query non-dynamic, categorize all the data sources (via the Data Source Settings dialog) so that they won't be unclassified, or disable the data privacy firewall.
Let me know if you're still not able to resolve it.
Ehren