pi_http: fix copy/paste error that can lead to a crash when 'order_by_cols' is used