Ron H -- you missed my point. I admitted to not checking his component, and in quickly looking over the design I ASSumed it was an opamp and a switch.Close to GND isn't the problem. LMV331 inputs can go 0.1V below GND, but it will only work when the inputs are more than 0.8V below the positive rail.
The problem is, when people come up with designs that are so far from being technically correct or operational, it is hard to provide "good" advise without spending a lot of time looking into design parameters to redesign and redraw most of the circuit. Therefore, I sometimes just add a note or two to try to get the person to move forward with what they have done (note I suggested looking into datasheet applications).
Studying datasheet applications for reference comparator circuits, and understanding the function, would help this person considerably; rather than just throwing him a fish. I can almost predict that the next question will be "what is hysteresis?"