select distinct month(tienda_evento.fecha_inicio) as month, year(tienda_evento.fecha_inicio) as year, date_format(tienda_evento.fecha_inicio,'%Y%m') as id from tienda_evento where estado=1 and estore = 1;