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