Total
-
select wm_board.* , fi.wm_filename, fi.wm_file_width, fi.wm_file_height
from sp_wm_faq as wm_board
left join sp_board_file as fi
on wm_board.wm_id = fi.wm_bid and fi.wm_num = 0
and fi.wm_table = 'faq'
where 1 = 1 and wm_is_comment = 0 and (wm_notice = 'N') and (wm_reply = '')
order by wm_num, wm_reply limit 0, 1
-
d