select SQL_CALC_FOUND_ROWS distinct wr.wr_parent from g4_write_gujik wr left join `g4_board_tags` t on wr.wr_id = t.wr_id where 1=1 and ( t.str_tag = '디자이너' ) and t.bo_table = 'gujik' order by wr_num, wr_reply limit 0, 20
3065 : Expression #1 of ORDER BY clause is not in SELECT list, references column 'sir.wr.wr_num' which is not in SELECT list; this is incompatible with DISTINCT
error file : /15sir/bbs/board.php