Error thrown

Undefined constant "name"