I add a course filter in my configurable report.
I follow http://docs.moodle.org/22/en/Configurable_reports
so my sql query looks like the follwing:
SELECT prefix_log.time,prefix_log.endtime,prefix_log.ip,prefix_course.fullname
FROM prefix_log
%%FILTER_COURSES:prefix_log.course%%
INNER JOIN prefix_course
ON prefix_log.course=prefix_course.id
WHERE ip='***.***.***.***'
When I finished setting,I clicked "View report" and choose a course category from the filter ,then clicked "add" , it showed"Error reading from database",but if my sql query didn't have %%FILTER_COURSES:prefix_log.course%%, it was working!
So,what is the correct string in sql query when using filter?
Thank you very much