Error sql:
select distinct substring(b.fecha,1,4) as ano
from iw4_blogentradas b
where b.oculto=0
order by b.fecha desc
Expression #1 of ORDER BY clause is not in SELECT list, references column 'qhc621.b.fecha' which is not in SELECT list; this is incompatible with DISTINCT
Line: 211 File: /srv/vhost/bluecharmweddings.com/home/html/newcore/core/classes/drivers/Mysql.php
Line: 196 File: /srv/vhost/bluecharmweddings.com/home/html/newcore/core/classes/drivers/Mysql.php
Line: 56 File: /srv/vhost/bluecharmweddings.com/home/html/newcore/process.php
Line: 25 File: /srv/vhost/bluecharmweddings.com/home/html/index_newcore.php
Line: 67 File: /srv/vhost/bluecharmweddings.com/home/html/index.php