Hi Ronald. I see this question is a continuation of your previous thread at https://theeventscalendar.com/support/forums/topic/question-on-100-a-day-limit/
I suggested in that thread that if you have any issues with this SQL script, you should ask your host.
However, I did find http://stackoverflow.com/questions/2360371/mysql-stored-procedures-not-working-with-select-basic-question, which may indicate an error with older versions of PHPMyAdmin (since you’re not on that old of a version of MySQL, as described in this link).
If your server/host gives you access to the command line, you could run that query directly or ask them to run it for you.
Again, I’m going to need to refer you back to your web host to dig deeper into this, but I hope this additional research helps.