Maybe take a look at the switch contacts/clean them, I know I have to wiggle the switch a little sometimes on mine. I personally haven't looked at my switch contacts, just what I'm assuming I need to do.
Also, it could be the door micro switch?...
Do the lights work if you open a door besides the driver's?