Add params from order by clause to param list fixes #192