Getting 'Invalid SQL Query' error while executing procedure

For sample check the below thread -