I need to replace an existing outdoor PIR security light. However, the existing light has four wires going into it but the new one only has three. My problem is working out which ones to use. The old lamp has a Brown and Red going into a block and a Yellow wire going into another block plus the earth. The Brown wire is joined to two wires one going to the PIR and the other to the lamp, the Red wire goes to the PIR. The yellow wire is joined to two wires - one going to the lamp and the other to the PIR. This is a picture of the old lamps wiring
. The new lamp just has three - earth, L and N:
.