SELECT DISTINCT field_1, field_2 FROM table_1 ORDER BY field_3SQLSTATE[42P10]: Invalid column reference: 7 ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list
name value
aaa 111
aaa 222
bbb 156SELECT DISTINCT name FROM table_1 ORDER BY value;