Updating the query`

The query has been changed following @krishana's suggestion.