What is wrong with a sentence?
I know a doctor which last name is doctodoctor


I know a doctor whose last name is Doctodoctor.
Or is it like this
I know a doctor whose. The last name is Doctodoctor.