Assuming $instance is a Model instance, it should be ->newQuery(), not ->query()