Síguenos en

Sígue a Vive Campoo en facebook Sígue a Vive Campoo en twitter Sígue a Vive Campoo en youtube
MySQL Error Occured
1030: Got error 28 from storage engine

QUERY = SELECT a.*, count(a.id) AS total, sum(voto_favor) as total_favor, sum(voto_contra) as total_contra, sum(voto_favor)-sum(voto_contra) as diferencia,a.id_usuario as id_usuario_galeria FROM `galerias` a LEFT JOIN votos_galerias b ON a.id = b.id_galeria WHERE 1=1 AND (aprobada=1 AND id_cat LIKE '%00022%' AND (MONTH(datum)=MONTH('2022-06-27')) AND (YEAR(datum)=YEAR('2022-06-27'))) GROUP BY a.id ORDER BY diferencia DESC,total DESC LIMIT 50