How to Solve ERROR 1064 (42000)?
(sequel CHAR)
CONCAT(@sequel)


@variables are totally independent of non-@ variables.

Two fixes needed:


SET @SQL = CONCAT(@sequel); --> SET @SQL = sequel;
(sequel CHAR) --> (sequel VARCHAR(999))