SELECT
        c.id,
        c.socialName,
        c.street,
        c.fi
FROM ticket t
    JOIN client c ON c.id = t.clientFk
WHERE t.id = ?