SELECT
  `t`.`correo` AS `correo`,
  `t`.`nombre` AS `nombre`,
  `t`.`apellido` AS `apellido`,
  `t`.`url_foto` AS `url_foto`,
  `r`.`nombre` AS `rol`,
  `d`.`nombre` AS `departamento`,
  `d`.`tipo` AS `tipo_departamento`
FROM
  (
    (
      `edca`.`trabajadores` `t`
      JOIN `edca`.`roles` `r` ON((`t`.`rol_id` = `r`.`id`))
    )
    JOIN `edca`.`departamentos` `d` ON((`t`.`departamento_id` = `d`.`id`))
  )