Modified>=-1 and SaveTS > ISNULL((select MAX(ObjectSaveTS) from dbo.ApiSyncItems si JOIN dbo.ApiSynchronizations s ON s.ID = si.SyncId  and s.SyncType=1  where si.ObjectId = TaskId and si.ObjectType=1),0)