Fix compile error when calling get query

Needs to be tested to fully iron out methods.