select * from posts where (category_all like '117,%' or category_all like '%,117,%' or category_all like '%,117' ) and isonline='1' and title<>'' and notes<>'vip' and tutuctiu='' order by parent_postid,daterefresh desc limit -24,24