Only prefix query in $query field if any of the other fields are specified. Don't change the query if you don't need to.