It sounds like there may be a switched live or loop connection hidden in that ceiling wiring rather than a simple L and N setup. I’d definitely identify each conductor with a proper tester before reconnecting anything, especially with the unusual two neutrals and permanent live you’ve described...