select a.idx,a.category,a.writer,a.vote_good as vote_cnt,a.wname,a.subject,a.movie,a.img,a.html,a.comment_cnt,a.wtime from ygosu.articles a WHERE a.board_code='study' and a.board_code='study' and (select c.catename from ygosu_board.board_category c where c.idx=a.category) like '%잡담%' order by a.idx desc limit ,25