SELECT timecontrollings.id,
       timecontrollings.usuario,
       categoria_centro_costos.id as catCentroCosto,
       categoria_centro_costos.nombre as nombreCatCentroCosto,
       ROUND(SUM(timecontrollings.horas),2) as horas,
       categoria_centro_costos.color,
       MONTH(timecontrollings.fecha) as mes,
       YEAR(timecontrollings.fecha) as year,
       timecontrollings.createdAt,
       timecontrollings.updatedAt
FROM   timecontrollings, centro_costos,categoria_centro_costos
WHERE timecontrollings.centroCosto=centro_costos.id AND
        centro_costos.categoria=categoria_centro_costos.id
GROUP BY usuario,categoria_centro_costos.id,MONTH(timecontrollings.fecha), YEAR(timecontrollings.fecha)
