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 'categories' 
  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 = 5 
  AND dynamic_object_content.object_type like 'categories' 
WHERE 
  cscart_bm_snapping.grid_id IN (
    96, 97, 98, 99, 100, 101, 102, 103, 106, 
    109, 114, 107, 108, 110, 111, 112, 113, 
    115, 116, 129, 130, 131
  ) 
  AND cscart_bm_blocks_descriptions.lang_code = 'en' 
ORDER BY 
  cscart_bm_snapping.order, 
  cscart_bm_snapping.block_id

Query time 0.00174

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "153.01"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "75.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": 25,
            "rows_produced_per_join": 25,
            "filtered": "100.00",
            "index_condition": "(`betaatif_store`.`cscart_bm_snapping`.`grid_id` in (96,97,98,99,100,101,102,103,106,109,114,107,108,110,111,112,113,115,116,129,130,131))",
            "cost_info": {
              "read_cost": "14.26",
              "eval_cost": "2.50",
              "prefix_cost": "16.76",
              "data_read_per_join": "19K"
            },
            "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": 25,
            "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 'categories')), true)",
            "cost_info": {
              "read_cost": "6.25",
              "eval_cost": "2.50",
              "prefix_cost": "25.51",
              "data_read_per_join": "2K"
            },
            "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": 25,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "6.25",
              "eval_cost": "2.50",
              "prefix_cost": "34.26",
              "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": 25,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "6.25",
              "eval_cost": "2.50",
              "prefix_cost": "43.01",
              "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": 25,
            "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.25",
              "eval_cost": "2.50",
              "prefix_cost": "51.76",
              "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": 75,
            "filtered": "100.00",
            "index_condition": "<if>(is_not_null_compl(dynamic_object_content), ((`betaatif_store`.`dynamic_object_content`.`object_id` = 5) 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 'categories')), true)",
            "cost_info": {
              "read_cost": "18.75",
              "eval_cost": "7.50",
              "prefix_cost": "78.01",
              "data_read_per_join": "16K"
            },
            "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
99 5 0 105 top-logo 0 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
101 6 0 107 0 A call_request a:1:{s:8:"template";s:44:"addons/call_requests/blocks/call_request.tpl";} 0 1 en Call Request
129 10 0 134 0 A breadcrumbs a:1:{s:8:"template";s:22:"common/breadcrumbs.tpl";} 0 1 en Breadcrumbs
130 32 a:1:{s:5:"items";a:2:{s:7:"filling";s:8:"manually";s:8:"item_ids";s:0:"";}} 0 136 blocks/wrappers/sidebox_important.tpl 0 A product_filters a:1:{s:8:"template";s:48:"blocks/product_filters/for_category/original.tpl";} 0 1 en Product filters
130 33 a:1:{s:5:"items";a:2:{s:7:"filling";s:15:"recent_products";s:5:"limit";s:1:"3";}} 0 137 blocks/wrappers/sidebox_important.tpl 0 A products a:3:{s:8:"template";s:40:"blocks/products/products_small_items.tpl";s:11:"item_number";s:1:"N";s:23:"hide_add_to_cart_button";s:1:"Y";} 0 1 en Recently Viewed
129 54 a:1:{s:5:"items";a:1:{s:7:"filling";s:8:"manually";}} 0 135 0 A product_filters a:1:{s:8:"template";s:43:"blocks/product_filters/selected_filters.tpl";} 0 1 en Selected product filters
103 64 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 109 0 A categories a:3:{s:8:"template";s:52:"blocks/categories/categories_dropdown_horizontal.tpl";s:30:"dropdown_second_level_elements";s:2:"12";s:29:"dropdown_third_level_elements";s:1:"6";} 0 1 en Main menu
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
131 76 a:1:{s:5:"items";a:2:{s:7:"filling";s:8:"manually";s:8:"item_ids";s:1:"8";}} 0 138 ty-holiday-gift-banner 0 A banners a:1:{s:8:"template";s:34:"addons/banners/blocks/original.tpl";} 0 1 en Gift banner
131 11 0 139 blocks/wrappers/mainbox_general.tpl 1 A main 0 1 en Main Content
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
100 7 0 106 top-search 2 A template a:1:{s:8:"template";s:34:"blocks/static_templates/search.tpl";} 0 1 en Search
102 8 0 108 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
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
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
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