1) I had a mechanic mate look at over the car before I bought it & there were no problems. I arranged a thorough mechanical test with a mobile company & it was carried out while I wasn't present. I was told the car was sweet, paid the money & took the car.
2) Immediately after picking it up I noticed it was knocking under throttle (it was insanely bad). Took it to Toyota - their mechanic told me it was the petrol.
3) I was told by a mate with a Celica GT4 (running 16psi on 96) that it didn't sound right so I took it to my mechanic mate who spotted a broken cable to a sensor in the air box (see pic below). Soldered the sensor & the problem almost went away.
4) When I'm in traffic & the car heats up it still knocks and gets worse under heavy throttle between 2000rpm to 4000rpm. It also does it occasionally during normal driving.
5) Had the cambelt changed & Toyota told me not to worry about sound so I've left it for a few months.
Now its starting to piss me off. I've since been told that this knocking / pinking / detonation is probably doing damage to the engine. I have also heard that GTT's can run 96 petrol without any issues (if I do this it will knock to death).
Lastly, I have been told that these sensors to the air box cannot be repaired / re-soldered because it mucks up their calibration. Could anyone out there please shed some light on any of this?

I've spent a lot of money on the car & its frustrating that I cant drive it the way it was intended to. I'm also fed up of going back and forth to mechanics with no solutions.