Invalid query: Unknown column 'spread_total' in 'order clause'