SELECT `main_table`.* FROM `mst_seo_content_template` AS `main_table` WHERE (`is_active` = '1') AND (`rule_type` = '1') AND (FIND_IN_SET(1, store_ids) OR store_ids = 0)