select *, if (datediff(now(), regdate) <= 3, 'ok', 'no') isnew from jc_board_article where board_id = 'faq' and (is_notice != 'ok' or is_notice is null) and is_topnotice != 'ok' order by gid desc, depth asc