SELECT sec.id_curso_vers, sec.nombre, sec.id FROM `opn_curso_seccion` AS sec INNER JOIN opn_curso_version AS ver ON sec.id_curso_vers = ver.id INNER JOIN opn_cursos AS oc ON ver.id_curso = oc.id_curso where ver.id =