SELECT c.name FROM client c JOIN receipt r ON r.clientFk = c.id WHERE r.id = ?;