My code is having the above problem and I wonder is it the problem of version in MySQL workbench, as it shows the error in the output:
Error Code: 1064. You have an error