SELECT c.id, c.socialName, u.lang locale FROM receipt r JOIN client c ON c.id = r.clientFk JOIN account.user u ON u.id = c.id WHERE r.id = ?