SELECT 
  netting_bm_snapping.grid_id as grid_id, 
  netting_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, 
  netting_bm_block_statuses.object_ids as object_ids, 
  netting_bm_snapping.*, 
  netting_bm_blocks.*, 
  netting_bm_blocks_descriptions.* 
FROM 
  netting_bm_snapping 
  LEFT JOIN netting_bm_blocks ON netting_bm_blocks.block_id = netting_bm_snapping.block_id 
  LEFT JOIN netting_bm_block_statuses ON netting_bm_snapping.snapping_id = netting_bm_block_statuses.snapping_id 
  AND netting_bm_block_statuses.object_type LIKE 'categories' 
  LEFT JOIN netting_bm_blocks_descriptions ON netting_bm_blocks.block_id = netting_bm_blocks_descriptions.block_id 
  LEFT JOIN netting_bm_blocks_content AS default_content ON netting_bm_blocks.block_id = default_content.block_id 
  AND netting_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 netting_bm_blocks_content AS dynamic_object_content ON netting_bm_blocks.block_id = dynamic_object_content.block_id 
  AND netting_bm_blocks_descriptions.lang_code = dynamic_object_content.lang_code 
  AND dynamic_object_content.object_id = 318 
  AND dynamic_object_content.object_type like 'categories' 
WHERE 
  netting_bm_snapping.grid_id IN (
    963, 964, 965, 969, 966, 967, 968, 972, 
    977, 973, 974, 975, 976, 978, 979, 1031, 
    1032, 1033, 1034, 1035, 1036
  ) 
  AND netting_bm_blocks_descriptions.lang_code = 'en' 
ORDER BY 
  netting_bm_snapping.order, 
  netting_bm_snapping.block_id

Query time 0.00185

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "read_sorted_file": {
          "filesort": {
            "sort_key": "netting_bm_snapping.`order`, netting_bm_snapping.block_id",
            "table": {
              "table_name": "netting_bm_snapping",
              "access_type": "range",
              "possible_keys": ["grid_id"],
              "key": "grid_id",
              "key_length": "4",
              "used_key_parts": ["grid_id"],
              "rows": 35,
              "filtered": 100,
              "index_condition": "netting_bm_snapping.grid_id in (963,964,965,969,966,967,968,972,977,973,974,975,976,978,979,1031,1032,1033,1034,1035,1036)"
            }
          }
        }
      },
      {
        "table": {
          "table_name": "netting_bm_blocks",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "4",
          "used_key_parts": ["block_id"],
          "ref": ["pucuda_cscart.netting_bm_snapping.block_id"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "netting_bm_blocks_descriptions",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "10",
          "used_key_parts": ["block_id", "lang_code"],
          "ref": ["pucuda_cscart.netting_bm_snapping.block_id", "const"],
          "rows": 1,
          "filtered": 100,
          "index_condition": "netting_bm_blocks_descriptions.lang_code = 'en'"
        }
      },
      {
        "table": {
          "table_name": "netting_bm_block_statuses",
          "access_type": "ref",
          "possible_keys": ["snapping_id"],
          "key": "snapping_id",
          "key_length": "4",
          "used_key_parts": ["snapping_id"],
          "ref": ["pucuda_cscart.netting_bm_snapping.snapping_id"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "trigcond(netting_bm_snapping.snapping_id = netting_bm_block_statuses.snapping_id and netting_bm_block_statuses.object_type like 'categories')"
        }
      },
      {
        "table": {
          "table_name": "default_content",
          "access_type": "ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "18",
          "used_key_parts": ["block_id", "snapping_id", "lang_code", "object_id"],
          "ref": [
            "pucuda_cscart.netting_bm_snapping.block_id",
            "const",
            "pucuda_cscart.netting_bm_blocks_descriptions.lang_code",
            "const"
          ],
          "rows": 2,
          "filtered": 100,
          "attached_condition": "trigcond(default_content.object_type like '')"
        }
      },
      {
        "table": {
          "table_name": "dynamic_object_content",
          "access_type": "ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "4",
          "used_key_parts": ["block_id"],
          "ref": ["pucuda_cscart.netting_bm_snapping.block_id"],
          "rows": 8,
          "filtered": 100,
          "attached_condition": "trigcond(dynamic_object_content.lang_code = netting_bm_blocks_descriptions.lang_code and dynamic_object_content.object_id = 318 and dynamic_object_content.object_type like 'categories')"
        }
      }
    ]
  }
}

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
973 75 0 1174 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
964 101 a:1:{s:4:"menu";s:1:"1";} 0 1160 top-quick-links hidden-phone 0 A menu a:4:{s:8:"template";s:26:"blocks/menu/text_links.tpl";s:18:"show_items_in_line";s:1:"Y";s:22:"abt__ut2_demo_block_id";s:8:"top_menu";s:27:"open_on_sticky_panel_button";s:1:"N";} 0 1 en Quick links
976 112 a:1:{s:7:"content";s:702:"<ul> <li>г. {$settings.Company.company_city}, {$settings.Company.company_address}</li> <li><a href="tel:{$settings.Company.company_phone}"><bdi>{$settings.Company.company_phone}</bdi> </a></li> <li><a href="tel:{$settings.Company.company_phone_2}"><bdi>{$settings.Company.company_phone_2}</bdi></a></li> <li>{__('weekday_abr_1')}-{__('weekday_abr_0')} M-F 8am-5pm</li> <li> 24/7 Customer Service</li> <li><a class="ty-exception__links-a greeny" href="mailto:{$settings.Company.company_users_department}">{$settings.Company.company_users_department}</a></li> <li><a href="{'pages.view&page_id=20'|fn_url}" class="ty-exception__links-a">{__('view_on_map')}</a></li> </ul>";} 0 1177 blocks/wrappers/footer_general.tpl footer-no-wysiwyg 0 A safe_smarty_block a:5:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";s:22:"abt__ut2_demo_block_id";s:0:"";s:23:"skeleton_height_desktop";s:0:"";s:22:"skeleton_height_tablet";s:0:"";s:22:"skeleton_height_mobile";s:0:"";} 0 1 en Contact us
1031 166 0 1234 blocks/wrappers/abt__ut2_onclick_dropdown_outside_position.tpl ut2-categories hidden-tablet hidden-desktop 0 A abt__ut2_advanced_subcategories_menu a:8:{s:8:"template";s:69:"addons/abt__unitheme2/blocks/abt__ut2_advanced_subcategories_menu.tpl";s:22:"abt__ut2_demo_block_id";s:0:"";s:23:"skeleton_height_desktop";s:0:"";s:22:"skeleton_height_tablet";s:0:"";s:22:"skeleton_height_mobile";s:0:"";s:21:"abt__ut2_show_parents";s:1:"Y";s:22:"abt__ut2_show_siblings";s:1:"Y";s:22:"abt__ut2_show_children";s:1:"Y";} 0 1 en Сategories
1032 168 a:1:{s:5:"items";a:2:{s:7:"filling";s:8:"manually";s:8:"item_ids";s:2:"39";}} 0 1236 0 D banners a:4:{s:8:"template";s:57:"addons/abt__unitheme2/blocks/abt__ut2_banner_combined.tpl";s:6:"margin";s:1:"0";s:6:"height";s:5:"320px";s:22:"abt__ut2_demo_block_id";s:18:"banner_in_category";} 0 1 en Banners in the category (top)
1033 169 0 1237 0 A template a:1:{s:8:"template";s:60:"blocks/static_templates/abt__ut2__categories_title_block.tpl";} 0 1 en Category page title
1034 170 a:1:{s:5:"items";a:2:{s:7:"filling";s:8:"manually";s:8:"item_ids";s:0:"";}} 0 1239 0 A product_filters a:2:{s:8:"template";s:58:"blocks/product_filters/for_category/horizontal_filters.tpl";s:22:"abt__ut2_demo_block_id";s:0:"";} 0 1 en Horizontal filters
968 192 0 1168 hidden-phone 0 A template a:2:{s:8:"template";s:49:"blocks/static_templates/abt__ut2__top_buttons.tpl";s:22:"abt__ut2_demo_block_id";s:0:"";} 0 1 en AB: Buttons Compare and Wishlist
966 210 a:1:{s:13:"settings_link";s:0:"";} 0 1163 0 A abt__ut2_fly_menu a:10:{s:8:"template";s:50:"addons/abt__unitheme2/blocks/abt__ut2_fly_menu.tpl";s:19:"abt_menu_icon_items";s:1:"Y";s:36:"no_hidden_elements_second_level_view";s:2:"10";s:36:"elements_per_column_third_level_view";s:1:"5";s:19:"abt__ut2_show_title";s:1:"N";s:22:"abt__ut2_demo_block_id";s:0:"";s:23:"skeleton_height_desktop";s:0:"";s:22:"skeleton_height_tablet";s:0:"";s:22:"skeleton_height_mobile";s:0:"";s:27:"open_on_sticky_panel_button";s:1:"Y";} 0 1 en Menu
967 212 a:1:{s:4:"menu";s:1:"2";} 0 1165 blocks/wrappers/onclick_dropdown.tpl top-menu-grid-vetrtical hidden-phone 0 A menu a:16:{s:8:"template";s:46:"blocks/menu/abt__ut2_dropdown_vertical_mwi.tpl";s:21:"abt__ut2_filling_type";s:14:"column_filling";s:22:"abt__ut2_columns_count";s:1:"4";s:22:"abt__menu_compact_view";s:1:"N";s:19:"abt_menu_icon_items";s:1:"Y";s:36:"no_hidden_elements_second_level_view";s:1:"6";s:36:"elements_per_column_third_level_view";s:2:"10";s:30:"dropdown_second_level_elements";s:2:"12";s:29:"dropdown_third_level_elements";s:1:"6";s:31:"abt__ut2_view_more_btn_behavior";s:10:"view_items";s:24:"abt__ut2_menu_min_height";s:3:"490";s:22:"abt__ut2_demo_block_id";s:9:"main_menu";s:23:"skeleton_height_desktop";s:0:"";s:22:"skeleton_height_tablet";s:0:"";s:22:"skeleton_height_mobile";s:0:"";s:27:"open_on_sticky_panel_button";s:1:"Y";} 0 1 en Categories
1035 231 a:3:{s:5:"width";s:0:"";s:6:"height";s:0:"";s:5:"items";a:2:{s:7:"filling";s:8:"manually";s:8:"item_ids";s:2:"40";}} 0 1472 0 A banners a:5:{s:8:"template";s:34:"addons/banners/blocks/original.tpl";s:22:"abt__ut2_demo_block_id";s:0:"";s:23:"skeleton_height_desktop";s:0:"";s:22:"skeleton_height_tablet";s:0:"";s:22:"skeleton_height_mobile";s:0:"";} 0 1 en Category Ad banner
979 235 a:1:{s:7:"content";s:424:"<div class="ty-payment-icons-custom"> <img src="design/themes/responsive/media/images/addons/stripe/payments/stripe_checkout_mark.png" width="51px" height="32px"> <img src="design/themes/responsive/media/images/addons/stripe/payments/google_pay_mark.png" width="51px" height="32px"> <img src="design/themes/responsive/media/images/addons/stripe/payments/apple_pay_mark.png" width="51px" height="32px"> </div>";} 0 1549 0 A html_block a:5:{s:8:"template";s:21:"blocks/html_block.tpl";s:22:"abt__ut2_demo_block_id";s:0:"";s:23:"skeleton_height_desktop";s:0:"";s:22:"skeleton_height_tablet";s:0:"";s:22:"skeleton_height_mobile";s:0:"";} 0 1 en Custom payment icons
963 238 0 1553 0 A location_selector a:5:{s:8:"template";s:52:"addons/vendor_locations/blocks/location_selector.tpl";s:22:"abt__ut2_demo_block_id";s:0:"";s:23:"skeleton_height_desktop";s:0:"";s:22:"skeleton_height_tablet";s:0:"";s:22:"skeleton_height_mobile";s:0:"";} 0 1 en Customer Location
974 77 a:1:{s:7:"content";s:624:"<ul id="demo_store_links"> <li class="ty-footer-menu__item"><a href="{"pages.view?page_id=2"|fn_url}">About us</a></li> <li class="ty-footer-menu__item"><a href="{"pages.view?page_id=30"|fn_url}">Contact us</a></li> <li class="ty-footer-menu__item"><a href="{"gift_certificates.add"|fn_url}">Gift certificates</a></li> <li class="ty-footer-menu__item"><a href="https://netting.com/index.php?dispatch=companies.catalog">Our brands</a></li> <li class="ty-footer-menu__item"><a href="{"pages.view?page_id=7"|fn_url}">Blog</a></li> <li class="ty-footer-menu__item"><a href="{"sitemap.view"|fn_url}">Sitemap</a></li> </ul>";} 0 1175 blocks/wrappers/footer_general.tpl footer-no-wysiwyg 1 A safe_smarty_block a:5:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";s:22:"abt__ut2_demo_block_id";s:0:"";s:23:"skeleton_height_desktop";s:0:"";s:22:"skeleton_height_tablet";s:0:"";s:22:"skeleton_height_mobile";s:0:"";} 0 1 en netting.com
964 102 0 1161 top-currencies 1 A currencies a:4:{s:8:"template";s:21:"blocks/currencies.tpl";s:22:"abt__ut2_demo_block_id";s:0:"";s:6:"format";s:6:"symbol";s:14:"dropdown_limit";s:1:"0";} 0 1 en Currencies
968 111 0 1169 ut2-top-my-account hidden-phone 1 A my_account a:1:{s:8:"template";s:21:"blocks/my_account.tpl";} 0 1 en Account
1033 114 a:6:{s:4:"menu";s:1:"5";s:22:"ab__fn_show_common_btn";s:1:"N";s:22:"ab__fn_common_btn_text";s:0:"";s:27:"ab__fn_show_common_btn_link";s:0:"";s:23:"ab__fn_common_btn_class";s:0:"";s:22:"ab__fn_common_btn_type";s:14:"ab__fn_cbt_btn";} 0 1238 1 D ab__fast_navigation a:9:{s:8:"template";s:74:"addons/ab__fast_navigation/blocks/ab__fast_navigation/ab__fn_one_level.tpl";s:19:"ab__fn_display_type";s:11:"ab__fn_grid";s:32:"ab__fn_number_of_columns_desktop";s:2:"10";s:38:"ab__fn_number_of_columns_desktop_small";s:1:"6";s:31:"ab__fn_number_of_columns_tablet";s:1:"5";s:37:"ab__fn_number_of_columns_tablet_small";s:1:"4";s:31:"ab__fn_number_of_columns_mobile";s:1:"3";s:17:"ab__fn_icon_width";s:3:"100";s:22:"abt__ut2_demo_block_id";s:0:"";} 0 1 en AB: Fast Navigation Catalog
1031 167 a:1:{s:5:"items";a:2:{s:7:"filling";s:8:"manually";s:8:"item_ids";s:0:"";}} 0 1235 blocks/wrappers/abt__ut2_onclick_dropdown_outside_position.tpl ut2-filters hidden-desktop hidden-tablet 1 A product_filters a:1:{s:8:"template";s:48:"blocks/product_filters/for_category/original.tpl";} 0 1 en Filters
1034 171 a:1:{s:5:"items";a:2:{s:7:"filling";s:8:"manually";s:8:"item_ids";s:0:"";}} 0 1240 1 A product_filters a:1:{s:8:"template";s:65:"blocks/product_filters/for_category/abt__ut2_selected_filters.tpl";} 0 1 en Selected product filters
1035 172 0 1242 blocks/wrappers/abt__ut2__sidebox_important.tpl ut2-subcategories-block hidden-phone 1 A abt__ut2_advanced_subcategories_menu a:5:{s:8:"template";s:69:"addons/abt__unitheme2/blocks/abt__ut2_advanced_subcategories_menu.tpl";s:22:"abt__ut2_demo_block_id";s:0:"";s:21:"abt__ut2_show_parents";s:1:"Y";s:22:"abt__ut2_show_siblings";s:1:"Y";s:22:"abt__ut2_show_children";s:1:"Y";} 0 1 en Сategories
967 213 0 1166 ut2-search 1 A template a:2:{s:8:"template";s:34:"blocks/static_templates/search.tpl";s:22:"abt__ut2_demo_block_id";s:0:"";} 0 1 en Search
1034 11 0 1241 2 A main 0 1 en Main Content
978 18 0 1178 2 A template a:1:{s:8:"template";s:37:"blocks/static_templates/copyright.tpl";} 0 1 en Copyright
979 19 0 1179 2 D template a:5:{s:8:"template";s:41:"blocks/static_templates/payment_icons.tpl";s:22:"abt__ut2_demo_block_id";s:0:"";s:23:"skeleton_height_desktop";s:0:"";s:22:"skeleton_height_tablet";s:0:"";s:22:"skeleton_height_mobile";s:0:"";} 0 1 en Payment icons
1035 30 a:1:{s:5:"items";a:2:{s:7:"filling";s:8:"manually";s:8:"item_ids";s:0:"";}} 0 1243 blocks/wrappers/abt__ut2__sidebox_important.tpl ut2-filters hidden-phone 2 A product_filters a:1:{s:8:"template";s:48:"blocks/product_filters/for_category/original.tpl";} 0 1 en Product filters
975 78 a:1:{s:7:"content";s:750:" <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 1176 blocks/wrappers/footer_general.tpl footer-no-wysiwyg 2 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 1 en Customer Service
964 103 a:1:{s:4:"text";s:0:"";} 0 1162 top-languages 2 A languages a:4:{s:8:"template";s:20:"blocks/languages.tpl";s:22:"abt__ut2_demo_block_id";s:0:"";s:6:"format";s:22:"ab__name_without_icons";s:14:"dropdown_limit";s:1:"0";} 0 1 en Languages
967 107 0 1167 2 A template a:6:{s:8:"template";s:46:"blocks/static_templates/abt__ut2__contacts.tpl";s:49:"abt__ut2__block_contacts_show_call_request_button";s:1:"Y";s:44:"abt__ut2__block_contacts_show_social_buttons";s:1:"Y";s:35:"abt__ut2__block_contacts_show_email";s:1:"Y";s:36:"abt__ut2__block_contacts_show_addres";s:1:"Y";s:22:"abt__ut2_demo_block_id";s:0:"";} 0 1 en Contacts
968 110 0 1170 ut2-top-cart-content 2 A cart_content a:4:{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";} 0 1 en Cart content
1036 173 a:1:{s:5:"items";a:2:{s:7:"filling";s:8:"manually";s:8:"item_ids";s:19:"161,190,238,239,242";}} 0 1244 blocks/wrappers/abt__ut2__mainbox_general.tpl ut2-bestsellers-block 2 A products a:3:{s:8:"template";s:40:"blocks/products/products_small_items.tpl";s:11:"item_number";s:1:"Y";s:23:"hide_add_to_cart_button";s:1:"Y";} 0 1 en Bestsellers
969 214 a:1:{s:4:"menu";s:1:"6";} 0 1171 2 A menu a:16:{s:8:"template";s:48:"blocks/menu/abt__ut2_dropdown_horizontal_mwi.tpl";s:19:"abt_menu_long_names";s:1:"N";s:29:"abt_menu_long_names_max_width";s:3:"110";s:40:"abt__menu_add_horizontal_scroll_sections";s:1:"Y";s:21:"abt__ut2_filling_type";s:14:"column_filling";s:22:"abt__ut2_columns_count";s:1:"5";s:22:"abt__menu_compact_view";s:1:"N";s:19:"abt_menu_icon_items";s:1:"Y";s:36:"no_hidden_elements_second_level_view";s:1:"5";s:36:"elements_per_column_third_level_view";s:2:"30";s:30:"dropdown_second_level_elements";s:2:"30";s:29:"dropdown_third_level_elements";s:2:"30";s:31:"abt__ut2_view_more_btn_behavior";s:10:"view_items";s:24:"abt__ut2_menu_min_height";s:3:"450";s:22:"abt__ut2_demo_block_id";s:9:"main_menu";s:27:"open_on_sticky_panel_button";s:1:"N";} 0 1 en Main menu
966 205 0 1164 top-logo 5 A template a:3:{s:8:"template";s:32:"blocks/static_templates/logo.tpl";s:11:"enable_link";s:1:"Y";s:17:"abt__ut2_fly_menu";s:8:"top_logo";} 0 1 en Logo