Cron error can't find id in where filter

Have tried using a query directly and using the “Edit” function in the User service. Still the same error message - “The value of field id in your where filter is undefined”

I have logged out the values passed to the service and they are correct. So I don’t really understand why they aren’t being picked up in the query?!

Any help greatly appreciated.