after market cd deck right?
if so, try taking it out and checking the wires, could be a short or could be spliced to the wrong wires which is making it only work when lights are on, wouldnt hurt to check the "radio" fuse under the dash either, mine blew when i put an after market cd player in