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 90, 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