Código SQL:
Ver original
SELECT DISTINCT empresa.name, IATAS.IATA , usuario.email, empresa.PHONE , GDS.ID_GDS FROM empresas empresa , agency_iatas IATAS, users usuario, agency_schema GDS WHERE empresa.id_emp = IATAS.ID_EMP AND empresa.id_emp = usuario.id_emp AND empresa.id_emp = GDS.ID_EMP
https://drive.google.com/open?id=0Bz...XlCVFlyY0Z1ejQ