Fact: You had your TPS off of your car before.
Fact: You have code 51.
Fact: Your code 51 is 100% related to you taking off the TPS.
Give this a whirl: Loosen the TPS mounting screws and move the TPS adjustment out counter clockwise while it is running. Wait a few seconds, and see if the code is gone.
Check out this thread, pay attention to post #9. And #10.
HELP! my engine warms up in reverse order - SupraMania