select c.*, m.company, m.company_en from tbl_content c left join tbl_member m on m.id = c.member_id where c.active=1 and c.deleted=0 and c.cat_id<>9 and c.cat_id<>57 and c.cat_id<>14 and c.cat_id<>18 and c.cat_id<>69 and c.photo_1<>'' and c.icon_at_home = 1 and c.icon_separation_order <> '' and ( m.active = 1 or m.active is NULL ) and c.post_date <= '2025-02-14' order by c.icon_separation_order