Remember that cfquery is putting a string together to send to
the database so DATEDIFF(d,InDate,Now()) is wrong it should be
DATEDIFF(d,InDate,#Now()#). However, depending on what db you are
using I would recommend that you use the internal time on the
database so on SQL Server you would use
DATEDIFF(d,InDate,getDate())