MySQL Error Occured
1062: Duplicate entry '2014-05-10 19:12:58' for key 'group_key'

QUERY = SELECT a.*,COUNT(b.id) AS total_imagenes FROM galerias a LEFT JOIN imagenes b ON a.id = b.id_galeria WHERE 1=1 AND (aprobada=1 AND aprobada=1) GROUP BY fecha_publicada DESC HAVING total_imagenes>0 ORDER BY fecha_publicada DESC