Fixed sort column error in postgres