select distinct wr_parent from g4_write_news2 where ca_name = '最新消息' and (wr_num between '-20' and '9980') order by wr_num, wr_reply limit 0, 10
3065 : Expression #1 of ORDER BY clause is not in SELECT list, references column 'mkcome_demo.g4_write_news2.wr_num' which is not in SELECT list; this is incompatible with DISTINCT