error/moodle/invalidqueryparam
One possible cause of this error is a call like
$DB->get_records_sql($sql, $params)
where the SQL query, $sql, contains several '?' which are to be substituted by $params, but fewer parameters than '?' are supplied. Check that $params was not created using unexpected NULL values. get_records_sql() is defined in 'lib/dml/*_native_moodle_database.php', depending on which database you are using.
Source: docs.moodle.org/503/en/error/moodle/invalidqueryparam — MoodleDocs (GPL) · Imported 2026-11-10.
这篇文档对你有帮助吗?
谢谢你的反馈!