SELECT
        i.id,
        s.id supplierId,
        i.created,
        s.name,
        s.street AS postalAddress,
        s.nif,
        s.phone
	FROM invoiceIn i
		JOIN supplier s ON s.id = i.supplierFk
		JOIN company c ON c.id = i.companyFk
    WHERE i.id = ?
