I was reading this article about jokes on 30 Rock. A sentence seemed strange to me, and I had to reread a few times. They are talking about a writer, Robert Carlock, writing jokes for a character, Dr. Spaceman:
Robert Carlock, in particular, is the Spaceman expert. Most of the jokes for him, as this one did, come from him.
So, the antecedents are in the first sentence, and the pronouns are in the second. From the context you can figure out that the first
him is referring to Spaceman, and the 2nd
him is referring to Carlock. The sentence just seems very awkward. Is it grammatically correct? Could there be a more clear way to have written it?