Silly mistake in the query