1: 2: 3:
SELECT * FROM tablename WHERE ABS(DATEDIFF(DateField,curdate())*24+ TIMEDIFF(TimeField,curtime()))<=Hours