Find a Syntax Error
===

I need a couple of eyes.
Got this `query`, inside a stored




    (..)    
    IF @@ROWCOUNT = 0
        	BEGIN
        	-- No esta precalculado. Precalculo e inserto en las 2 tablas
        	insert into @Precalculo (descripcion, Valor) exec dbo.GetRankingTotalizador @Fecha, DateAdd(minute, (-1), DateAdd(day, 1, @Fecha)), @cadenas, @familias
        	insert into @ranking select Descripcion, Valor from @Precalculo
        	insert into PrecalculoComparativaSemanal select @Fecha as Fecha, @cadenas as CadenasConcatenadas, @familias as FamiliasConcatenadas, [1] as Unidades, [2] as Ventas, [3] as  TraficoIn, [4] as TraficoOut from
        											(select Descripcion, Valor from @Precalculo) p PIVOT (min(Valor) FOR Valor in ([1], [2], [3], [4])) as pvt
        
        	END

If I put a `print('2')` inside the `Begin/End` it works fine, but in this case it gives me an error:

> Incorrect syntax near 'minute'.

There is some simple syntax error and I'm not seeing it. It's driving me crazy!
Please, help :)
