Using ``foldl`` you're inverting the given list of ``UpdateFields``. In some weird scenarios this may actually affect the results of the query. I think you should use ``foldr`` here (and everywhere else in this module) just to be sure.