SELECT 
  cscart_bm_snapping.grid_id as grid_id, 
  cscart_bm_snapping.block_id as block_id, 
  IFNULL(
    dynamic_object_content.content, 
    default_content.content
  ) as content, 
  IFNULL(
    dynamic_object_content.object_id, 
    default_content.object_id
  ) AS object_id, 
  IFNULL(
    dynamic_object_content.object_type, 
    default_content.object_type
  ) AS object_type, 
  cscart_bm_block_statuses.object_ids as object_ids, 
  cscart_bm_snapping.*, 
  cscart_bm_blocks.*, 
  cscart_bm_blocks_descriptions.* 
FROM 
  cscart_bm_snapping 
  LEFT JOIN cscart_bm_blocks ON cscart_bm_blocks.block_id = cscart_bm_snapping.block_id 
  LEFT JOIN cscart_bm_block_statuses ON cscart_bm_snapping.snapping_id = cscart_bm_block_statuses.snapping_id 
  AND cscart_bm_block_statuses.object_type LIKE '' 
  LEFT JOIN cscart_bm_blocks_descriptions ON cscart_bm_blocks.block_id = cscart_bm_blocks_descriptions.block_id 
  LEFT JOIN cscart_bm_blocks_content AS default_content ON cscart_bm_blocks.block_id = default_content.block_id 
  AND cscart_bm_blocks_descriptions.lang_code = default_content.lang_code 
  AND default_content.snapping_id = 0 
  AND default_content.object_id = 0 
  AND default_content.object_type like '' 
  LEFT JOIN cscart_bm_blocks_content AS dynamic_object_content ON cscart_bm_blocks.block_id = dynamic_object_content.block_id 
  AND cscart_bm_blocks_descriptions.lang_code = dynamic_object_content.lang_code 
  AND dynamic_object_content.object_id = 0 
  AND dynamic_object_content.object_type like '' 
WHERE 
  cscart_bm_snapping.grid_id IN (
    96, 97, 98, 106, 109, 114, 107, 108, 110, 
    111, 112, 113, 115, 116, 152, 153, 154, 
    155, 156, 157, 158, 159, 160, 161
  ) 
  AND cscart_bm_blocks_descriptions.lang_code = 'en' 
ORDER BY 
  cscart_bm_snapping.order, 
  cscart_bm_snapping.block_id

Query time 0.00159

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "165.31"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "81.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_bm_snapping",
            "access_type": "range",
            "possible_keys": [
              "grid_id"
            ],
            "key": "grid_id",
            "used_key_parts": [
              "grid_id"
            ],
            "key_length": "4",
            "rows_examined_per_scan": 27,
            "rows_produced_per_join": 27,
            "filtered": "100.00",
            "index_condition": "(`betaatif_store`.`cscart_bm_snapping`.`grid_id` in (96,97,98,106,109,114,107,108,110,111,112,113,115,116,152,153,154,155,156,157,158,159,160,161))",
            "cost_info": {
              "read_cost": "15.46",
              "eval_cost": "2.70",
              "prefix_cost": "18.16",
              "data_read_per_join": "20K"
            },
            "used_columns": [
              "snapping_id",
              "block_id",
              "grid_id",
              "wrapper",
              "user_class",
              "order",
              "status"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_bm_block_statuses",
            "access_type": "ref",
            "possible_keys": [
              "snapping_id"
            ],
            "key": "snapping_id",
            "used_key_parts": [
              "snapping_id"
            ],
            "key_length": "4",
            "ref": [
              "betaatif_store.cscart_bm_snapping.snapping_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 27,
            "filtered": "100.00",
            "index_condition": "<if>(is_not_null_compl(cscart_bm_block_statuses), ((`betaatif_store`.`cscart_bm_snapping`.`snapping_id` = `betaatif_store`.`cscart_bm_block_statuses`.`snapping_id`) and (`betaatif_store`.`cscart_bm_block_statuses`.`object_type` like '')), true)",
            "cost_info": {
              "read_cost": "6.75",
              "eval_cost": "2.70",
              "prefix_cost": "27.61",
              "data_read_per_join": "3K"
            },
            "used_columns": [
              "snapping_id",
              "object_ids",
              "object_type"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_bm_blocks",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "block_id"
            ],
            "key_length": "4",
            "ref": [
              "betaatif_store.cscart_bm_snapping.block_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 27,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "6.75",
              "eval_cost": "2.70",
              "prefix_cost": "37.06",
              "data_read_per_join": "5K"
            },
            "used_columns": [
              "block_id",
              "type",
              "properties",
              "company_id",
              "storefront_id"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_bm_blocks_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "block_id",
              "lang_code"
            ],
            "key_length": "10",
            "ref": [
              "betaatif_store.cscart_bm_snapping.block_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 27,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "6.75",
              "eval_cost": "2.70",
              "prefix_cost": "46.51",
              "data_read_per_join": "5K"
            },
            "used_columns": [
              "block_id",
              "lang_code",
              "name"
            ]
          }
        },
        {
          "table": {
            "table_name": "default_content",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "block_id",
              "snapping_id",
              "lang_code",
              "object_id"
            ],
            "key_length": "18",
            "ref": [
              "betaatif_store.cscart_bm_snapping.block_id",
              "const",
              "betaatif_store.cscart_bm_blocks_descriptions.lang_code",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 27,
            "filtered": "100.00",
            "index_condition": "<if>(is_not_null_compl(default_content), (`betaatif_store`.`default_content`.`object_type` like ''), true)",
            "cost_info": {
              "read_cost": "6.75",
              "eval_cost": "2.70",
              "prefix_cost": "55.96",
              "data_read_per_join": "5K"
            },
            "used_columns": [
              "snapping_id",
              "object_id",
              "object_type",
              "block_id",
              "lang_code",
              "content"
            ]
          }
        },
        {
          "table": {
            "table_name": "dynamic_object_content",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "block_id"
            ],
            "key_length": "4",
            "ref": [
              "betaatif_store.cscart_bm_snapping.block_id"
            ],
            "rows_examined_per_scan": 3,
            "rows_produced_per_join": 81,
            "filtered": "100.00",
            "index_condition": "<if>(is_not_null_compl(dynamic_object_content), ((`betaatif_store`.`dynamic_object_content`.`object_id` = 0) and (`betaatif_store`.`dynamic_object_content`.`lang_code` = `betaatif_store`.`cscart_bm_blocks_descriptions`.`lang_code`) and (`betaatif_store`.`dynamic_object_content`.`object_type` like '')), true)",
            "cost_info": {
              "read_cost": "20.25",
              "eval_cost": "8.10",
              "prefix_cost": "84.31",
              "data_read_per_join": "17K"
            },
            "used_columns": [
              "object_id",
              "object_type",
              "block_id",
              "lang_code",
              "content"
            ]
          }
        }
      ]
    }
  }
}

Result

grid_id block_id content object_id object_type object_ids snapping_id wrapper user_class order status type properties company_id storefront_id lang_code name
98 4 0 104 blocks/wrappers/onclick_dropdown.tpl top-my-account 0 A my_account a:1:{s:8:"template";s:21:"blocks/my_account.tpl";} 0 1 en My Account
161 11 0 182 blocks/wrappers/mainbox_general.tpl 0 A main 0 1 en Main Content
153 50 a:1:{s:7:"content";s:24:"<h2> {__("stores")}</h2>";} 0 173 0 A smarty_block a:1:{s:8:"template";s:23:"blocks/smarty_block.tpl";} 0 1 en Stores
156 51 0 175 0 A vendor_logo a:1:{s:8:"template";s:30:"blocks/vendors/vendor_logo.tpl";} 0 1 en Vendor logo
159 54 a:1:{s:5:"items";a:1:{s:7:"filling";s:8:"manually";}} 0 178 0 A product_filters a:1:{s:8:"template";s:43:"blocks/product_filters/selected_filters.tpl";} 0 1 en Selected product filters
160 55 a:1:{s:5:"items";a:3:{s:7:"filling";s:13:"full_tree_cat";s:18:"parent_category_id";s:0:"";s:7:"sort_by";s:8:"position";}} 0 180 blocks/wrappers/sidebox_important.tpl 0 A vendor_categories a:2:{s:8:"template";s:50:"blocks/categories/categories_dropdown_vertical.tpl";s:25:"right_to_left_orientation";s:1:"N";} 0 1 en Vendor categories
110 66 0 114 blocks/wrappers/footer_general.tpl 0 A template a:1:{s:8:"template";s:44:"blocks/static_templates/my_account_links.tpl";} 0 1 en My account
110 67 a:1:{s:7:"content";s:261:" <ul id="demo_store_links"> <li class="ty-footer-menu__item"><a href="{"companies.apply_for_vendor"|fn_url}">Apply for a seller account</a></li> <li class="ty-footer-menu__item"><a href="{"pages.view?page_id=15"|fn_url}">Vendor terms & conditions</a></li> </ul>";} 0 115 blocks/wrappers/footer_general.tpl footer-no-wysiwyg 1 A smarty_block a:1:{s:8:"template";s:23:"blocks/smarty_block.tpl";} 0 1 en Become a seller
111 68 a:1:{s:7:"content";s:310:"<ul id="demo_store_links"> <li class="ty-footer-menu__item"><a href="{"pages.view?page_id=25"|fn_url}">About us</a></li> <li class="ty-footer-menu__item"><a href="{"pages.view?page_id=26"|fn_url}">Contact us</a></li> <li class="ty-footer-menu__item"><a href="{"sitemap.view"|fn_url}">Sitemap</a></li> </ul>";} 0 116 blocks/wrappers/footer_general.tpl footer-no-wysiwyg 1 A smarty_block a:2:{s:8:"template";s:23:"blocks/smarty_block.tpl";s:22:"abt__ut2_demo_block_id";s:0:"";} 0 1 en About Us
152 5 0 172 top-logo 2 A template a:2:{s:8:"template";s:32:"blocks/static_templates/logo.tpl";s:11:"enable_link";s:1:"Y";} 0 1 en Logo
154 8 0 174 top-cart-content 2 A cart_content a:5:{s:8:"template";s:23:"blocks/cart_content.tpl";s:22:"display_bottom_buttons";s:1:"Y";s:20:"display_delete_icons";s:1:"Y";s:19:"products_links_type";s:5:"thumb";s:20:"generate_block_title";s:1:"Y";} 0 1 en Cart content
159 10 0 179 2 A breadcrumbs a:1:{s:8:"template";s:22:"common/breadcrumbs.tpl";} 0 1 en Breadcrumbs
108 13 a:1:{s:7:"content";s:627:"<div class="ty-social-link-block"><h3 class="ty-social-link__title">{__("get_social")}</h3> <div class="ty-social-link facebook"> <a href="http://www.facebook.com"><i class="ty-icon-facebook"></i>Facebook</a> </div> <div class="ty-social-link instagram"> <a href="https://www.instagram.com"><i class="ty-icon-instagram"></i>Instagram</a> </div> <div class="ty-social-link twitter"> <a href="https://twitter.com"><i class="ty-icon-twitter"></i>Twitter</a> </div> <div class="ty-social-link youtube"> <a href="https://www.youtube.com/user/cscartvideos"><i class="ty-icon-youtube"></i>Youtube</a> </div></div> ";} 0 113 2 A smarty_block a:1:{s:8:"template";s:23:"blocks/smarty_block.tpl";} 0 1 en Social links
115 18 0 119 2 A template a:1:{s:8:"template";s:37:"blocks/static_templates/copyright.tpl";} 0 1 en Copyright
116 19 0 120 2 A template a:1:{s:8:"template";s:41:"blocks/static_templates/payment_icons.tpl";} 0 1 en Payment icons
157 52 0 176 2 A vendor_search a:1:{s:8:"template";s:32:"blocks/vendors/vendor_search.tpl";} 0 1 en Vendor search
158 53 0 177 2 A vendor_information a:1:{s:8:"template";s:37:"blocks/vendors/vendor_information.tpl";} 0 1 en Vendor information
96 63 0 101 top-languages 2 A languages a:3:{s:8:"template";s:20:"blocks/languages.tpl";s:6:"format";s:4:"name";s:14:"dropdown_limit";s:1:"0";} 0 1 en Languages
107 65 0 112 2 A template a:1:{s:8:"template";s:56:"addons/newsletters/blocks/static_templates/subscribe.tpl";} 0 1 en Subscribe
112 69 a:1:{s:7:"content";s:490:" <ul id="customer_service_links"> <li class="ty-footer-menu__item"><a href="{"orders.search"|fn_url}" rel="nofollow">About your order</a></li> {if $addons.wishlist && $addons.wishlist.status == 'A'} <li class="ty-footer-menu__item"><a href="{"wishlist.view"|fn_url}" rel="nofollow">Wishlist</a></li> {/if} {if $settings.General.enable_compare_products == 'Y'} <li class="ty-footer-menu__item"><a href="{"product_features.compare"|fn_url}" rel="nofollow">Comparison list</a></li> {/if} </ul>";} 0 117 blocks/wrappers/footer_general.tpl footer-no-wysiwyg 2 A smarty_block a:2:{s:8:"template";s:23:"blocks/smarty_block.tpl";s:22:"abt__ut2_demo_block_id";s:0:"";} 0 1 en Customer Service
160 77 a:1:{s:5:"items";a:1:{s:7:"filling";s:8:"manually";}} 0 181 blocks/wrappers/sidebox_important.tpl 2 A product_filters a:1:{s:8:"template";s:35:"blocks/product_filters/original.tpl";} 0 1 en Vendor filters
96 2 0 102 top-currencies 3 A currencies a:3:{s:8:"template";s:21:"blocks/currencies.tpl";s:6:"format";s:6:"symbol";s:14:"dropdown_limit";s:1:"3";} 0 1 en Currencies
97 3 a:1:{s:4:"menu";s:1:"1";} 0 103 top-quick-links 3 A menu a:2:{s:8:"template";s:26:"blocks/menu/text_links.tpl";s:18:"show_items_in_line";s:1:"Y";} 0 1 en Quick links