Only one of the following sentences is grammatically correct. Which one is it?
A. He recommended her to continue her education.
B. He recommended she continues her education.
C. He recommended she continued her education.
D. He recommended she continue her education.
and please explain the reason why.