Error thrown

Undefined constant "term_id"