Error thrown

Call to undefined method stdClass::filter()