The first thought on this is to check the driver's door adjustment, if the door is not closing properly this can happen. There is a switch that is part of the door latch,(to access it the door trim panel must be removed) and these switches go bad or the wiring can get pinched causing the symptoms you are experiencing, but before I went through all that, I would check the door adjustment. When closing the door slowly,(let the door contact the door striker then push the door closed with constant pressure) the latch should click twice, if you hear only one click and the door seems loose, adjustment is needed. If that is ok, you will need to remove the door trim panel and investigate the wiring and the latch condition.