Fix "Unknown column 'ps_timestamp' in 'order clause"