I think it's exactly as you said. First one has lots of wires (the one I've changed). There are two earth wires, 4 brown and 4 blue ( one marked brown). I've connected all brown to loop, 3 blue to N and blue marked brown to L. The other light has only brown,blue and earth wire. So obviously it's all not connected as it should be.