looks like you are using a machine step with a db connector (ms sql db by the looks of it). So, in there, flow functions are not recognized.
You could try to assign the value of Now() to a variable first in an assignement step before the machine step
( NowVariable = {Now()} )
and then use that variable in your sql select
( …WHERE DateTime.DifferenceInDays(COMPLETE_BY, @NowVariable) < 5 )
But also another a small note, be careful when you include the db name in the machine step as I suspect you do here:
If you are in a test environment (both SQL and Flow) and you subscribe to the workflow in prod with a hard coded db name, the data will still try to write to that database (which might be your test database).
It is probably better to let the connector decide database if that makes sense.