sql2 = select * from g5_write_g4_utf8_free where wr_parent = '7' and wr_is_comment = 1 order by wr_comment, wr_comment_reply sql5 = SELECT * FROM g5_write_g4_utf8_free WHERE wr_is_comment = 0 and wr_id not in (11) order by wr_num, wr_reply limit 0, 14