select distinct wr_parent from g5_write_job0 where ca_name = 'BGC' and (wr_num between -446 and (-446 + 10000)) order by wr_num, wr_reply limit 15, 15
3065 : Expression #1 of ORDER BY clause is not in SELECT list, references column 'philsamo3.g5_write_job0.wr_num' which is not in SELECT list; this is incompatible with DISTINCT
error file : /bbs/board.php