포토갤러리

select distinct wr_parent from g5_write_photo where ((INSTR(wr_subject, '포토존') or INSTR(wr_content, '포토존')) ) and (wr_num between -17 and (-17 + 10000)) order by wr_num, wr_reply limit 0, 12

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

error file : /g5/bbs/board.php