Trying to use the correct query