select * from curso inner join grupo_curso3_grupo_curso2 on (gcu32_id = cur_gcu32_id) inner join grupo_curso3 on (gcu3_id = gc32_gcu3_id) where gc32_gcu3_id = '121' and cur_ecu_id != 3 and cur_fechaInicio >= NOW() and cur_mostrarPreinscripcion = 'Si' order by cur_fechaInicio asc limit 1