Change the query conditions