Unknown column 'currency' in 'order clause'