ParseError thrown

syntax error, unexpected 'On' (T_STRING)