select distinct wr_parent from g5_write_phonebook where ca_name = '마트.반찬.선물' and (wr_num between -310 and (-310 + 10000)) order by rand(), wr_num, wr_reply limit 0, 15
3065 : Expression #2 of ORDER BY clause is not in SELECT list, references column 'philsamo3.g5_write_phonebook.wr_num' which is not in SELECT list; this is incompatible with DISTINCT
error file : /bbs/board.php