correct query by one parameter