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