Have you serviced the car lately, you may have dislodged one of the wires on the knock sensor as it is next to the oil filter?
Try reaching under the fuel rail guard and giving the wires a push, i think it is a brown connector with a red and white wire. If you take the airbox out you may be able to see it (this is on a ph2 172). They are about £30 new.