Now back to working state.  Changed a $person['pid']['value'] to $person_object