Hi,
I am using Moodle 3.8
When I try to save below adhoc query on my moodle it gives me error.
Query is:
SELECT COUNT(*)
,concat('<a target="_new" href="mywebsiteurl/course/view.php?id=',c.id,'">',c.fullname,'</a>') AS Course
,concat('<a target="_new" href="mywebsiteurl/mod/quiz/index.php?id=',c.id,'">Link</a>') AS Quizes
FROM prefix_course_modules cm
JOIN prefix_course c ON c.id = cm.course
JOIN prefix_modules AS m ON m.id = cm.module
WHERE m.name LIKE 'quiz'
GROUP BY c.id
While saving query got this error:
"Error when executing the query: ERROR: Incorrect number of query parameters. Expected 2, got 0."
Please help..
Thanks in advance.
PS: This error comes in all Adhoc queries
