I’m trying to use the python query runner to run a query on an existing query. I created a data source called query-results and I’m executing my query like this
result = execute_query(“query-results”, “select * from query_11”)
however it’s failing with this error message
Error running query: <type ‘exceptions.AttributeError’> ‘NoneType’ object has no attribute 'org_id’
the query works when I execute it on the query-results datasource
am I doing something wrong?

Thanks

Does query_11 use parameters?

no, it does not. The other query is another python query