The correct answer is: D. No error

The sentence is grammatically correct. The word "enquired" is a verb that means "to ask a question." The word "me" is the direct object of the verb "enquired." The phrase "why I had not seen him the previous day" is a subordinate clause that serves as the object of the preposition "of." The phrase "as I had promised to do" is a subordinate clause that serves as an adverbial clause of purpose.

The sentence can be paraphrased as follows: "He asked me why I had not seen him the previous day, as I had promised to do."