Ok, earlier, when I said it sorted itself out, I reset the circuit and tried again. It didn't work. So I tried decoupling caps, covering the ldr..etc, but nothing worked. I then remembered that I had connected the LDR to the same power supply as the picaxe earlier, to save time. This worked!
So...