select event_id from schedule where (event_start between $current_time and ($current_time+3 *60)) or (event_start between 0 and ($current_time + 3*60)-24*60)