prueba de artículo de consulta de moodle
SELECT cm.id, q.name
FROM mdl_quiz AS q
INNER JOIN mdl_course_modules AS cm
ON q.id = cm.instance
GutoTrosla
SELECT cm.id, q.name
FROM mdl_quiz AS q
INNER JOIN mdl_course_modules AS cm
ON q.id = cm.instance