Archipia Architecture

select distinct wr_parent from g5_write_QnA where ca_name = '질문' and (wr_num between -9 and (-9 + 10000)) order by wr_num, wr_reply limit 0, 10

3065 : Expression #1 of ORDER BY clause is not in SELECT list, references column 'archipia_homepage.g5_write_QnA.wr_num' which is not in SELECT list; this is incompatible with DISTINCT

error file : /bbs/board.php