Unknown column 'closed' in 'order clause'