If the passenger door operates the interior lights properly then I would bet that the switch that is mounted on the drivers door latch assembly is stuck in the closed position.
It gets dirty and stays closed, and acts as though the door is closed no matter it is open or closed.