[BUGFIX] Fix assignment of query order parameter