create 
with hours_start_end as (
SELECT user_id,phone, ifnull(substr(range_mute_tzintukim,1,5),'23:00') hour_start, ifnull(substr(range_mute_tzintukim,7,5),'08:00') hour_end 
from users),

users_tzintukim_info as (
select user_id,phone, case when hour_end < hour_start and DATE_FORMAT(NOW(), '%H:%i') < hour_start then  concat(current_date - INTERVAL 1 DAY,' ', hour_start) else concat(current_date,' ', hour_start) end time_start,
case when hour_end < hour_start and DATE_FORMAT(NOW(), '%H:%i') > hour_start then  concat(current_date + INTERVAL 1 DAY,' ', hour_end) else concat(current_date,' ', hour_end) end time_end from hours_start_end)

select distinct phone from tzintukim join users_tzintukim_info on tzintukim.user_id = users_tzintukim_info.user_id where datetime_send is null and not now() between time_start and time_end

