If you're who I think you are, I was talking to you about this yesterday.
After giving it some thought, I reckon it's a vaccum leak...
If it's trying to idle and air is getting in after the throttle body, it's going to run lean.
Which means the computer goes "WTF? but the throttle is shut, and air is coming into the engine."
So it assumes that the TPS is faulty, as it think's it's actually partially open, when the voltage from the TPS signal would indicate that it's shut. (Because it is!)
So it thinks it's a problem with the TPS, rather than an air leak.
Although if this were the case, then it would surely see that the AFM isnt reading properly either, and throw an AFM code...
Although I dont think the engine monitors the AFM when idling regardless?
also, IIRC, there are two different conditions that trigger the fuel pump being on.
One is when you're cranking it over, the other is when the ECU outputs a voltage to the circuit opening relay. If the wiring to the circuit opening relay wasnt hooked back up properly (seems unlikely to me) then you wouldnt be getting fuel once you stop cranking the engine.
There are two pins you can short out on the diagnostic terminal to maek the fuel pump run constantly, (cant remember which off the top of my head)
You could try doing that, to eliminate lack of fuel as a possibility.
Or yeah, see if your injectors are working.
Double check all of your earth cables, I've been caught out like that. haha.
Also maybe your cam timing has been setup wrong? Been there too. hehe.