can't read "query": no such variable