Unknown column 'ap.list_index' in 'order clause'