get query result fixed