#107023 by yas and asimmonds: aggregator was not updating older items because of badly ordered SQL parameters