Error al acceder a la Base de datos
SQL: SELECT c.id,c.titulo_es as titulo, c.contenido_es as contenido, c.fecha_finalizacion,c.lugar_es as lugar, c.imagen, c.imgdescripcion_es as imgdescripcion, COUNT(ci.id) as num_imagenes FROM cursos as c left join cursos_imagenes as ci on (c.id = ci.idcurso) WHERE c.fecha_finalizacion <= NOW() and c.activo='Si' and c.eliminado='No' and c.titulo_es != '' and (ci.id is null or (ci.activo='Si' and ci.eliminado='No')) GROUP BY c.id ORDER BY c.fecha_finalizacion desc
ERROR: No database selected