SELECT * FROM tbmanage WHERE car_id='4' AND status_id='NULL' AND ((chktime_end BETWEEN '2014-09-18 07:00:00' AND '2014-09-18 17:00:00')or(chkdate_end BETWEEN '2014-09-18 07:00:00' AND '2014-09-18 17:00:00')) ;
where car_id='4' and status_id=null and
(
('2014-09-18 08:00:00' between chktime_end and chkdate_end)
or
('2014-04-18 18:00:00' between chktime_end and chkdate_end)
)