select distinct wr_parent from g5_write_notice where ((INSTR(wr_subject, '체육상')) ) and (wr_num between -1375 and (-1375 + 10000)) order by wr_datetime asc limit 0, 15
3065 : Expression #1 of ORDER BY clause is not in SELECT list, references column 'gjsad.g5_write_notice.wr_datetime' which is not in SELECT list; this is incompatible with DISTINCT
error file : /bbs/board.php