SELECT patients.fio, patients.number_phone,
appointment.date_of_appointment,
appointment.time_of_appointment
FROM appointment
INNER JOIN patients
WHERE (appointment.date_of_appointment <= DATE_ADD(CURDATE(), INTERVAL 5 day) AND appointment.date_of_appointment >= CURRENT_DATE() )
AND patients.user_id = appointment.user_id;