SQL Error: Got error 28 from storage engine
Query: SELECT canali.nome as nomecanale, canali.riferimenti, canali.principale, canali.usaAllegati,canali.usaUrgenti, canali.usaInformazioni, notizie.*, DATE_FORMAT(data,'%d/%m/%Y') AS pdata,EXTRACT(MONTH FROM data) AS mese, EXTRACT(DAY FROM data) AS giorno, EXTRACT(YEAR FROM data) AS anno,(TO_DAYS(CURRENT_DATE) - TO_DAYS(data)) as passati, (TO_DAYS(ttl)- TO_DAYS(data)) as durata,(DATE_FORMAT(data,"%Y-%m-%d") = CURRENT_DATE) as odierno, (ttl<=CURRENT_DATE) as scaduta FROM notizie left outer join canali on notizie.idcanale = canali.id WHERE (principale = 'y' OR (principale = 'u' AND tipo>=1)) AND (data<=CURRENT_TIMESTAMP OR permanente = 'y') AND ttl>CURRENT_DATE ORDER BY tipo DESC, data DESC