$answer->prev->AccessLevels, Error: Trying to get property of a non object
I am trying to get the previous values for answer object, with $answer->prev code.
I am able to fetch all the field values, except array fields like AccessLevels/Products/Categories.
Getting the error 'Trying to get property of a non object'.
Can anyone help me with this?