Which sentence is correct?

a) She invited I to a party.

b) She invited me to a party.