SELECT t.id ticketFk,
        c.id
    FROM ticket t
        JOIN cmr c ON c.id = t.cmrFk
    WHERE t.id = ?
