select * from visiting_timings where ( '21:13:40' BETWEEN fromtime AND totime OR ( '21:13:40' > fromtime && nextday = 1) ) and id='1' Tervetuloa Iltreno -->
Olemme Avoinna
09:00 TO 02:00
09:00 TO 02:00