$sql = "SELECT
face.face_face,
face_af.face_af,
face_small.face_small,
personal.`Name`,
face_room.date
FROM
face
INNER JOIN face_af ON face.ID_face = face_af.ID_face
INNER JOIN face_small ON face_af.ID_face_af = face_small.ID_face_af AND face.ID_face = face_small.ID_face
INNER JOIN face_room ON face_small.ID_face_small = face_room.ID_face_small AND face_af.ID_face_af = face_room.ID_face_af AND face.ID_face = face_room.ID_face
INNER JOIN personal ON personal.ID_personal = face_room.`name`";