General developer forum

Coding error detected, it must be fixed by a programmer: moodle_database::execute() Multiple sql statements found or bound parameters not used properly in query!

 
Davo
Re: Coding error detected, it must be fixed by a programmer: moodle_database::execute() Multiple sql statements found or bound parameters not used properly in query!
Group Core developersGroup Particularly helpful MoodlersGroup Plugin developers

Moodle is objecting to the presence of the ';' inside the SQL statement.

You will need to rewrite what you are attempting to do without the semicolon.


 
Average of ratings: Useful (1)
Picture of Konrad Lorinczi
Re: Coding error detected, it must be fixed by a programmer: moodle_database::execute() Multiple sql statements found or bound parameters not used properly in query!
 
I was able to shorten the query, then worked!
Thanks!
 
Average of ratings: -