tid // WHERE term_tid = $term_branch->tid // Or do anything else that your own logic requires when merging of 2 terms // happens. }