Added default case to handle any odd invalid usage of query()