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 'pages' 
  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 = 57 
  AND dynamic_object_content.object_type like 'pages' 
WHERE 
  cscart_bm_snapping.grid_id IN (
    864, 2602, 876, 881, 877, 882, 878, 1295, 
    879, 880, 1176, 1177, 1178, 1308, 2621, 
    2627, 2629, 2603, 2628, 2630, 2620, 
    2626
  ) 
  AND cscart_bm_blocks_descriptions.lang_code = 'ru' 
  AND cscart_bm_blocks.company_id = 1 
ORDER BY 
  cscart_bm_snapping.order, 
  cscart_bm_snapping.block_id

Query time 0.00232

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "38.03"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "2.40"
      },
      "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": 24,
            "rows_produced_per_join": 24,
            "filtered": "100.00",
            "index_condition": "(`testdobroded`.`cscart_bm_snapping`.`grid_id` in (864,2602,876,881,877,882,878,1295,879,880,1176,1177,1178,1308,2621,2627,2629,2603,2628,2630,2620,2626))",
            "cost_info": {
              "read_cost": "13.91",
              "eval_cost": "2.40",
              "prefix_cost": "16.31",
              "data_read_per_join": "18K"
            },
            "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": [
              "testdobroded.cscart_bm_snapping.snapping_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 24,
            "filtered": "100.00",
            "index_condition": "<if>(is_not_null_compl(cscart_bm_block_statuses), ((`testdobroded`.`cscart_bm_snapping`.`snapping_id` = `testdobroded`.`cscart_bm_block_statuses`.`snapping_id`) and (`testdobroded`.`cscart_bm_block_statuses`.`object_type` like 'pages')), true)",
            "cost_info": {
              "read_cost": "6.00",
              "eval_cost": "2.40",
              "prefix_cost": "24.71",
              "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": [
              "testdobroded.cscart_bm_snapping.block_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 2,
            "filtered": "10.00",
            "cost_info": {
              "read_cost": "6.00",
              "eval_cost": "0.24",
              "prefix_cost": "33.11",
              "data_read_per_join": "556"
            },
            "used_columns": [
              "block_id",
              "type",
              "properties",
              "company_id",
              "abt__yt_banners_use",
              "abt__yt_banner_max_position",
              "storefront_id",
              "ab__ab_hide_block"
            ],
            "attached_condition": "(`testdobroded`.`cscart_bm_blocks`.`company_id` = 1)"
          }
        },
        {
          "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": [
              "testdobroded.cscart_bm_snapping.block_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 2,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.60",
              "eval_cost": "0.24",
              "prefix_cost": "33.95",
              "data_read_per_join": "499"
            },
            "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": [
              "testdobroded.cscart_bm_snapping.block_id",
              "const",
              "testdobroded.cscart_bm_blocks_descriptions.lang_code",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 2,
            "filtered": "100.00",
            "index_condition": "<if>(is_not_null_compl(default_content), (`testdobroded`.`default_content`.`object_type` like ''), true)",
            "cost_info": {
              "read_cost": "0.60",
              "eval_cost": "0.24",
              "prefix_cost": "34.79",
              "data_read_per_join": "537"
            },
            "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": [
              "testdobroded.cscart_bm_snapping.block_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 2,
            "filtered": "100.00",
            "index_condition": "<if>(is_not_null_compl(dynamic_object_content), ((`testdobroded`.`dynamic_object_content`.`object_id` = 57) and (`testdobroded`.`dynamic_object_content`.`lang_code` = `testdobroded`.`cscart_bm_blocks_descriptions`.`lang_code`) and (`testdobroded`.`dynamic_object_content`.`object_type` like 'pages')), true)",
            "cost_info": {
              "read_cost": "0.60",
              "eval_cost": "0.24",
              "prefix_cost": "35.63",
              "data_read_per_join": "537"
            },
            "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 abt__yt_banners_use abt__yt_banner_max_position storefront_id ab__ab_hide_block lang_code name
864 4 0 3160 0 A geo_maps_customer_location a:5:{s:8:"template";s:44:"addons/geo_maps/blocks/customer_location.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:"";} 1 N 100 1 N ru Местоположение покупателя
2621 6 0 3175 top-logo 0 A template a:6:{s:8:"template";s:32:"blocks/static_templates/logo.tpl";s:11:"enable_link";s:1:"Y";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:"";} 1 N 100 1 N ru Логотип
1176 11 0 1404 0 A breadcrumbs a:1:{s:8:"template";s:22:"common/breadcrumbs.tpl";} 1 N 100 1 N ru Строка навигации
1177 12 0 1405 blocks/wrappers/mainbox_general.tpl 0 A main a:3:{s:23:"skeleton_height_desktop";s:0:"";s:22:"skeleton_height_tablet";s:0:"";s:22:"skeleton_height_mobile";s:0:"";} 1 N 100 1 N ru Главное содержимое
1178 41 a:1:{s:5:"items";a:4:{s:7:"filling";s:17:"blog.recent_posts";s:6:"period";s:1:"A";s:9:"last_days";s:1:"1";s:5:"limit";s:1:"3";}} 0 1406 blocks/wrappers/sidebox_important.tpl 0 A blog a:1:{s:8:"template";s:35:"addons/blog/blocks/recent_posts.tpl";} 1 N 100 1 N ru Недавнее
2628 43 0 3190 ut2-top-cart-content 0 A cart_content a:8:{s:8:"template";s:23:"blocks/cart_content.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:22:"display_bottom_buttons";s:1:"Y";s:20:"display_delete_icons";s:1:"Y";s:19:"products_links_type";s:5:"thumb";} 1 N 100 1 N ru Корзина
1295 100 a:1:{s:7:"content";s:663:"<!-- Bitrix24 --> <script>(function(w,d,u){ var s=d.createElement('script');s.async=true;s.src=u+'?'+(Date.now()/60000|0); var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h); })(window,document,'https://cdn.bitrix24.ru/b10200735/crm/tag/call.tracker.js'); </script> <p><!-- Bitrix24 Чат --></p> <script> (function(w,d,u){ var s=d.createElement('script');s.async=true;s.src=u+'?'+(Date.now()/60000|0); var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h); })(window,document,'https://cdn-ru.bitrix24.ru/b10200735/crm/site_button/loader_10_lppvkn.js'); </script>";} 0 1541 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:"";} 1 N 100 1 A ru CodeBitrix
879 109 a:1:{s:7:"content";s:834:" <ul id="customer_service_links"> <li class="ty-footer-menu__item"><a href="/login/" rel="nofollow">Войти</a></li> <li class="ty-footer-menu__item"><a href="{"orders.search"|fn_url}" rel="nofollow">Ваши заказы</a></li> {if $addons.wishlist && $addons.wishlist.status == 'A'} <li class="ty-footer-menu__item"><a href="index.php?dispatch=pages.view&page_id=21" rel="nofollow">Обмен и возврат</a></li> <li class="ty-footer-menu__item"><a href="{"wishlist.view"|fn_url}" rel="nofollow">Отложенные</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">Список сравнения</a></li> {/if} </ul>";} 0 1012 blocks/wrappers/footer_general.tpl footer-no-wysiwyg 0 A smarty_block a:5:{s:8:"template";s:23:"blocks/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:"";} 1 N 100 1 N ru Покупателям
2620 141 0 3180 top-buttons-grid hidden-tablet hidden-phone 0 A template a:5:{s:8:"template";s:49:"blocks/static_templates/abt__ut2__top_buttons.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:"";} 1 N 100 1 N ru AB: Кнопки Сравнение и Избранное
1308 207 a:1:{s:5:"items";a:6:{s:7:"filling";s:7:"similar";s:5:"limit";s:2:"15";s:13:"percent_range";s:0:"";s:16:"similar_category";s:1:"N";s:15:"similar_subcats";s:1:"Y";s:16:"similar_in_stock";s:1:"Y";}} 0 1567 0 A products a:12:{s:8:"template";s:46:"blocks/products/products_scroller_advanced.tpl";s:10:"show_price";s:1:"Y";s:17:"enable_quick_view";s:1:"Y";s:24:"not_scroll_automatically";s:1:"Y";s:15:"scroll_per_page";s:1:"N";s:15:"thumbnail_width";s:3:"270";s:25:"abt__ut2_thumbnail_height";s:3:"270";s:5:"speed";s:3:"400";s:11:"pause_delay";s:1:"3";s:13:"item_quantity";s:1:"5";s:18:"outside_navigation";s:1:"Y";s:23:"hide_add_to_cart_button";s:1:"N";} 1 N 100 1 N ru Товары из каталога Интернет-Магазина
1295 240 a:1:{s:7:"content";s:576:"<script> (function(w, d, s, h, id) { w.roistatProjectId = id; w.roistatHost = h; var p = d.location.protocol == "https:" ? "https://" : "http://"; var u = /^.*roistat_visit=[^;]+(.*)?$/.test(d.cookie) ? "/dist/module.js" : "/api/site/1.0/"+id+"/init?referrer="+encodeURIComponent(d.location.href); var js = d.createElement(s); js.charset="UTF-8"; js.async = 1; js.src = p+h+u; var js2 = d.getElementsByTagName(s)[0]; js2.parentNode.insertBefore(js, js2); })(window, document, 'script', 'cloud.roistat.com', '4c4ccc6374d686c4f72db1f1d537e205'); </script>";} 0 1804 0 D html_block a:2:{s:8:"template";s:21:"blocks/html_block.tpl";s:22:"abt__ut2_demo_block_id";s:0:"";} 1 N 100 1 N ru ROI
878 381 a:1:{s:7:"content";s:553:"<ul id="demo_store_links"> <li class="ty-footer-menu__item"><a href="{"pages.view?page_id=2"|fn_url}">О компании</a></li> <li class="ty-footer-menu__item"><a href="/opt" target="_blank">Оптовикам и партнерам</a></li> <li class="ty-footer-menu__item"><a href="/oplata-i-dostavka/">Оплата и доставка</a></li> <li class="ty-footer-menu__item"><a href="{"pages.view?page_id=26"|fn_url}">Блог</a></li> <li class="ty-footer-menu__item"><a href="{"sitemap.view"|fn_url}">Карта сайта</a></li> </ul>";} 0 3126 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:"";} 1 N 100 1 N ru Информация
880 382 a:1:{s:7:"content";s:683:"<ul> <li>г. {$settings.Company.company_city}, {$settings.Company.company_address}</li> <li><a href="tel:{$settings.Company.company_phone}">{$settings.Company.company_phone} (звонок бесплатный)</a></li> <li><a href="tel:{$settings.Company.company_phone_2}">{$settings.Company.company_phone_2}</a></li> <li>{__('weekday_abr_1')}-{__('weekday_abr_0')} 9.00 - 18.00</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 3127 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:"";} 1 N 100 1 N ru Контакты
2630 8 0 3211 Content top 1 A template a:5:{s:8:"template";s:34:"blocks/static_templates/search.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:"";} 1 N 100 1 N ru Поиск
877 107 0 3194 blocks/wrappers/footer_general.tpl footer-no-wysiwyg 1 A template a:5:{s:8:"template";s:44:"blocks/static_templates/my_account_links.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:"";} 1 N 100 1 N ru Моя учетная запись
2602 139 a:1:{s:4:"menu";s:1:"1";} 0 3161 top-quick-links 1 A menu a:7:{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: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:"N";} 1 N 100 1 N ru Быстрые ссылки
2628 145 0 3191 ut2-top-my-account 1 A my_account a:5:{s:8:"template";s:21:"blocks/my_account.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:"";} 1 N 100 1 N ru Аккаунт
2620 245 a:1:{s:7:"content";s:140:" <div class="ut2-pn"> <a href="tel:{$settings.Company.company_phone}">8 800 551-32-48</a> <p>Пн. - Пт.: 10.00 - 18.00</p> </div>";} 0 3182 top-phones-grid 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:"";} 1 N 100 1 N ru Обратный Звонок
882 19 0 1014 2 A template a:1:{s:8:"template";s:37:"blocks/static_templates/copyright.tpl";} 1 N 100 1 N ru Копирайт
2603 140 a:1:{s:4:"menu";s:1:"6";} 0 3183 hidden-phone hidden-tablet 2 A menu a:7:{s:8:"template";s:26:"blocks/menu/text_links.tpl";s:18:"show_items_in_line";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:"N";} 1 N 100 1 N ru Верхнее меню
2629 186 a:1:{s:4:"menu";s:1:"5";} 0 3188 blocks/wrappers/onclick_dropdown.tpl top-menu-grid-vetrtical 2 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:"4";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:"5";s:31:"abt__ut2_view_more_btn_behavior";s:10:"view_items";s:24:"abt__ut2_menu_min_height";s:3:"475";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:"N";} 1 N 100 1 N ru Каталог товаров