Fix error message when there are no results

`query` doesn't exist on it's own; it's on `options`.