select distinct wr_parent from g4_write_bbs_first where ca_name = '공지' and (wr_num between '-65' and '9935') order by wr_num, wr_reply limit 0, 10

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

error file : /bbs/bbs/board.php