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 (
    94, 95, 96, 103, 97, 100, 101, 102, 98, 
    99, 104, 105, 108, 109, 110, 111, 112, 
    113, 114, 115
  ) 
  AND cscart_bm_blocks_descriptions.lang_code = 'en' 
ORDER BY 
  cscart_bm_snapping.order, 
  cscart_bm_snapping.block_id

Query time 0.01235

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "380.41"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "145.92"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_bm_blocks_descriptions",
            "access_type": "ALL",
            "possible_keys": [
              "PRIMARY"
            ],
            "rows_examined_per_scan": 103,
            "rows_produced_per_join": 10,
            "filtered": "10.00",
            "cost_info": {
              "read_cost": "19.54",
              "eval_cost": "2.06",
              "prefix_cost": "21.60",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "block_id",
              "lang_code",
              "name"
            ],
            "attached_condition": "(`twebezli_Commercemodalpopup`.`cscart_bm_blocks_descriptions`.`lang_code` = 'en')"
          }
        },
        {
          "table": {
            "table_name": "cscart_bm_blocks",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "block_id"
            ],
            "key_length": "4",
            "ref": [
              "twebezli_Commercemodalpopup.cscart_bm_blocks_descriptions.block_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 10,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "10.30",
              "eval_cost": "2.06",
              "prefix_cost": "33.96",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "block_id",
              "type",
              "properties",
              "company_id",
              "storefront_id"
            ]
          }
        },
        {
          "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": [
              "twebezli_Commercemodalpopup.cscart_bm_blocks_descriptions.block_id",
              "const",
              "twebezli_Commercemodalpopup.cscart_bm_blocks_descriptions.lang_code",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 10,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "10.30",
              "eval_cost": "2.06",
              "prefix_cost": "46.32",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "snapping_id",
              "object_id",
              "object_type",
              "block_id",
              "lang_code",
              "content"
            ],
            "attached_condition": "<if>(is_not_null_compl(default_content), (`twebezli_Commercemodalpopup`.`default_content`.`object_type` like ''), true)"
          }
        },
        {
          "table": {
            "table_name": "dynamic_object_content",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "block_id"
            ],
            "key_length": "4",
            "ref": [
              "twebezli_Commercemodalpopup.cscart_bm_blocks_descriptions.block_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 12,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "10.30",
              "eval_cost": "2.56",
              "prefix_cost": "59.18",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "snapping_id",
              "object_id",
              "object_type",
              "block_id",
              "lang_code",
              "content"
            ],
            "attached_condition": "<if>(is_not_null_compl(dynamic_object_content), ((`twebezli_Commercemodalpopup`.`dynamic_object_content`.`object_id` = 0) and (`twebezli_Commercemodalpopup`.`dynamic_object_content`.`lang_code` = `twebezli_Commercemodalpopup`.`cscart_bm_blocks_descriptions`.`lang_code`) and (`twebezli_Commercemodalpopup`.`dynamic_object_content`.`object_type` like '')), true)"
          }
        },
        {
          "table": {
            "table_name": "cscart_bm_snapping",
            "access_type": "ALL",
            "possible_keys": [
              "grid_id"
            ],
            "rows_examined_per_scan": 227,
            "rows_produced_per_join": 48,
            "filtered": "1.67",
            "using_join_buffer": "Block Nested Loop",
            "cost_info": {
              "read_cost": "46.78",
              "eval_cost": "9.73",
              "prefix_cost": "203.24",
              "data_read_per_join": "37K"
            },
            "used_columns": [
              "snapping_id",
              "block_id",
              "grid_id",
              "wrapper",
              "user_class",
              "order",
              "status"
            ],
            "attached_condition": "((`twebezli_Commercemodalpopup`.`cscart_bm_snapping`.`block_id` = `twebezli_Commercemodalpopup`.`cscart_bm_blocks_descriptions`.`block_id`) and (`twebezli_Commercemodalpopup`.`cscart_bm_snapping`.`grid_id` in (94,95,96,103,97,100,101,102,98,99,104,105,108,109,110,111,112,113,114,115)))"
          }
        },
        {
          "table": {
            "table_name": "cscart_bm_block_statuses",
            "access_type": "ALL",
            "possible_keys": [
              "snapping_id"
            ],
            "rows_examined_per_scan": 3,
            "rows_produced_per_join": 145,
            "filtered": "100.00",
            "using_join_buffer": "Block Nested Loop",
            "cost_info": {
              "read_cost": "2.07",
              "eval_cost": "29.18",
              "prefix_cost": "234.49",
              "data_read_per_join": "17K"
            },
            "used_columns": [
              "snapping_id",
              "object_ids",
              "object_type"
            ],
            "attached_condition": "<if>(is_not_null_compl(cscart_bm_block_statuses), ((`twebezli_Commercemodalpopup`.`cscart_bm_snapping`.`snapping_id` = `twebezli_Commercemodalpopup`.`cscart_bm_block_statuses`.`snapping_id`) and (`twebezli_Commercemodalpopup`.`cscart_bm_block_statuses`.`object_type` like '')), true)"
          }
        }
      ]
    }
  }
}

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
105 19 0 111 0 A template a:1:{s:8:"template";s:41:"blocks/static_templates/payment_icons.tpl";} 0 1 en Payment icons
94 64 0 101 0 A template a:1:{s:8:"template";s:56:"addons/newsletters/blocks/static_templates/subscribe.tpl";} 0 1 en Subscribe
99 66 0 103 0 A currencies a:4:{s:8:"template";s:21:"blocks/currencies.tpl";s:4:"text";s:0:"";s:6:"format";s:6:"symbol";s:14:"dropdown_limit";s:1:"1";} 0 1 en Currencies
104 69 a:1:{s:7:"content";s:270:"<div class="ath_other_storefronts"> <a href="https://demo.themehills.com/cscart/t_jelly_theme/" class="ath_other_storefront_item" target="_blank"> <img class="ty-pict" src="https://demo.themehills.com/cscart/t_jelly_theme/images/logos/8/jt_logo_axhr-ki.png"> </a> </div>";} 0 108 0 D safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 1 en Other storefronts
108 72 a:1:{s:7:"content";s:505:"<div class="ath_s_header_icon_block" id="ath_main_menu_oppener"> <span class="ath_s_header_icon_block-link"> <span class="ath_main_menu_oppener__icon" aria-label="Toggle navigation"> <span></span> <span></span> <span></span> </span> </span> </div> <script> $(document).ready(function(){ $('#ath_main_menu_oppener').click(function(){ $(this).toggleClass('open'); $('.tygh-header .ty-menu__menu-btn').click(); }); }); </script>";} 0 115 hidden-tablet hidden-desktop ath_s__margin_right 0 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 1 en Mobile menu oppener
114 84 0 131 0 A template a:1:{s:8:"template";s:61:"addons/newsletters/blocks/static_templates/subscribe_home.tpl";} 0 1 en Home subscribe newsletter
104 3 a:1:{s:4:"menu";s:1:"1";} 0 109 1 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
108 5 0 116 1 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
99 67 0 104 1 A languages a:4:{s:8:"template";s:20:"blocks/languages.tpl";s:4:"text";s:0:"";s:6:"format";s:4:"icon";s:14:"dropdown_limit";s:1:"1";} 0 1 en Languages
105 71 a:1:{s:7:"content";s:803:"<div class="ath_s_social-link-block"> <div class="ath_s_social-link ath_s_social-link facebook"> <a href="http://www.facebook.com/pages/CS-Cart/156687676230"><span class="ty-icon ty-icon-facebook ty-icon-moon-facebook"></span></a> </div> <div class="ath_s_social-link ath_s_social-link instagram"> <a href="https://www.instagram.com"><span class="ty-icon ty-icon-instagram ty-icon-moon-instagram"></span></a> </div> <div class="ath_s_social-link ath_s_social-link twitter"> <a href="https://twitter.com/cscart"><span class="ty-icon ty-icon-twitter ty-icon-moon-twitter"></span></a> </div> <div class="ath_s_social-link ath_s_social-link youtube"> <a href="https://www.youtube.com/user/cscartvideos"><span class="ty-icon ty-icon-youtube ty-icon-moon-youtube"></span></a> </div></div> ";} 0 112 1 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 1 en Social icons
113 80 a:1:{s:7:"content";s:139:"<h2 class="text-center">£100 minimum order | <a href="{"pages.view&page_id=5"|fn_url}">Free delivery</a> from £300 | Up to 20% off</h2> ";} 0 127 1 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 1 en Home title
109 9 a:1:{s:4:"menu";s:1:"2";} 0 122 ath_s_top-menu 2 A menu a:3:{s:8:"template";s:35:"blocks/menu/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
100 15 a:1:{s:4:"menu";s:1:"3";} 0 105 blocks/wrappers/footer_alt.tpl 2 A menu a:2:{s:8:"template";s:26:"blocks/menu/text_links.tpl";s:18:"show_items_in_line";s:1:"N";} 0 1 en Shop
101 16 a:1:{s:4:"menu";s:1:"4";} 0 106 blocks/wrappers/footer_alt.tpl footer-menu-create-orders 2 A menu a:2:{s:8:"template";s:26:"blocks/menu/text_links.tpl";s:18:"show_items_in_line";s:1:"N";} 0 1 en Create order
98 65 0 102 blocks/wrappers/footer_alt.tpl 2 A template a:1:{s:8:"template";s:44:"blocks/static_templates/my_account_links.tpl";} 0 1 en My account
102 68 a:1:{s:7:"content";s:397:"<ul> <li>3993 Hanover Street<br/>New York, NY 10016 </li> <li><bdi>+1 917-722-7425</bdi> (call is free)</li> <li><bdi>10 am — 6 pm</bdi><br/> Monday - Friday</li> <li><a class="ty-exception__links-a greeny" href="mailto:sales@example.com">sales@example.com</a></li> <li><a href="{"pages.view?page_id=20"|fn_url}" class="ty-exception__links-a">About company</a></li> </ul> ";} 0 107 blocks/wrappers/footer_alt.tpl footer-no-wysiwyg footer-contacts 2 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 1 en About us
104 70 a:1:{s:7:"content";s:394:"{** block-description:tmpl_copyright **} <p class="bottom-copyright">&copy; {if $smarty.const.TIME|date_format:"%Y" != $settings.Company.company_start_year}{$settings.Company.company_start_year}-{/if}{$smarty.const.TIME|date_format:"%Y"} {$settings.Company.company_name}.&nbsp;SYRUP theme designed by <a class="bottom-copyright" href="http://themehills.com/" target="_blank">ThemeHills</a> </p>";} 0 110 2 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 1 en Copyright Text
108 73 0 117 2 A template a:1:{s:8:"template";s:53:"blocks/static_templates/search_width_dd_on_mobile.tpl";} 0 1 en Search
111 78 0 123 2 A call_request a:1:{s:8:"template";s:50:"addons/call_requests/blocks/call_request_short.tpl";} 0 1 en Call Request
112 79 0 124 2 A geo_maps_customer_location a:1:{s:8:"template";s:44:"addons/geo_maps/blocks/customer_location.tpl";} 0 1 en Customer location
113 81 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:6:"6,8,16";}} 0 128 2 A banners a:17:{s:8:"template";s:43:"addons/ath_swiper/blocks/banners/swiper.tpl";s:15:"thumbnail_width";s:0:"";s:16:"thumbnail_height";s:0:"";s:7:"items_d";s:1:"2";s:7:"items_t";s:1:"2";s:7:"items_m";s:1:"1";s:17:"show_part_of_next";s:4:"0.25";s:12:"spaceBetween";s:2:"10";s:6:"arrows";s:6:"inside";s:10:"pagination";s:4:"none";s:9:"scrollbar";s:1:"N";s:20:"scroll_automatically";s:1:"Y";s:11:"pause_delay";s:4:"2500";s:15:"scroll_per_page";s:1:"N";s:4:"loop";s:1:"N";s:11:"arrow_color";s:4:"#fff";s:16:"pagination_color";s:7:"#ff5319";} 0 1 en Home Banners Scroller
115 85 a:1:{s:5:"items";a:5:{s:7:"filling";s:33:"blog.recent_posts_scroller_swiper";s:14:"parent_page_id";s:1:"7";s:6:"period";s:1:"A";s:9:"last_days";s:1:"1";s:5:"limit";s:1:"5";}} 0 132 blocks/wrappers/mainbox_simple.tpl 2 A blog a:17:{s:8:"template";s:47:"addons/ath_swiper/addons/blog/blocks/swiper.tpl";s:15:"thumbnail_width";s:0:"";s:16:"thumbnail_height";s:0:"";s:7:"items_d";s:1:"2";s:7:"items_t";s:1:"2";s:7:"items_m";s:1:"1";s:17:"show_part_of_next";s:4:"0.45";s:12:"spaceBetween";s:2:"20";s:6:"arrows";s:6:"inside";s:10:"pagination";s:4:"none";s:9:"scrollbar";s:1:"N";s:20:"scroll_automatically";s:1:"N";s:11:"pause_delay";s:1:"3";s:15:"scroll_per_page";s:1:"Y";s:4:"loop";s:1:"N";s:11:"arrow_color";s:4:"#fff";s:16:"pagination_color";s:7:"#ff5319";} 0 1 en From the Magazine
112 67 0 125 top-languages 3 A languages a:4:{s:8:"template";s:20:"blocks/languages.tpl";s:4:"text";s:0:"";s:6:"format";s:4:"icon";s:14:"dropdown_limit";s:1:"1";} 0 1 en Languages
108 74 0 118 ath_s__margin_right 3 D my_compare_list a:1:{s:8:"template";s:26:"blocks/my_compare_list.tpl";} 0 1 en Compare list
113 82 a:1:{s:5:"items";a:5:{s:7:"filling";s:6:"newest";s:6:"period";s:1:"A";s:9:"last_days";s:1:"1";s:5:"limit";s:1:"8";s:3:"cid";s:0:"";}} 0 129 blocks/wrappers/mainbox_simple.tpl 3 A products a:16:{s:8:"template";s:44:"addons/ath_swiper/blocks/products/swiper.tpl";s:7:"items_d";s:1:"4";s:7:"items_t";s:1:"3";s:7:"items_m";s:1:"2";s:17:"show_part_of_next";s:3:"0.2";s:12:"spaceBetween";s:2:"20";s:6:"arrows";s:6:"inside";s:10:"pagination";s:4:"none";s:9:"scrollbar";s:1:"N";s:20:"scroll_automatically";s:1:"N";s:11:"pause_delay";s:4:"2500";s:15:"scroll_per_page";s:1:"Y";s:4:"loop";s:1:"N";s:11:"arrow_color";s:4:"#fff";s:16:"pagination_color";s:7:"#ff5319";s:23:"hide_add_to_cart_button";s:1:"N";} 0 1 en Latest Products
115 86 a:1:{s:5:"items";a:3:{s:7:"filling";s:7:"on_sale";s:5:"limit";s:1:"8";s:3:"cid";s:0:"";}} 0 133 blocks/wrappers/mainbox_simple.tpl 3 A products a:16:{s:8:"template";s:44:"addons/ath_swiper/blocks/products/swiper.tpl";s:7:"items_d";s:1:"4";s:7:"items_t";s:1:"3";s:7:"items_m";s:1:"2";s:17:"show_part_of_next";s:4:"0.25";s:12:"spaceBetween";s:2:"20";s:6:"arrows";s:6:"inside";s:10:"pagination";s:4:"none";s:9:"scrollbar";s:1:"N";s:20:"scroll_automatically";s:1:"N";s:11:"pause_delay";s:4:"2500";s:15:"scroll_per_page";s:1:"N";s:4:"loop";s:1:"N";s:11:"arrow_color";s:4:"#fff";s:16:"pagination_color";s:7:"#ff5319";s:23:"hide_add_to_cart_button";s:1:"Y";} 0 1 en Sale
112 66 0 126 top-currencies 4 A currencies a:4:{s:8:"template";s:21:"blocks/currencies.tpl";s:4:"text";s:0:"";s:6:"format";s:6:"symbol";s:14:"dropdown_limit";s:1:"1";} 0 1 en Currencies
108 75 0 119 ath_s__margin_right 4 A my_wishlist a:1:{s:8:"template";s:38:"addons/wishlist/blocks/my_wishlist.tpl";} 0 1 en Wish list
113 83 a:1:{s:7:"content";s:168:"<div class="ath-free-btn-section"> <a href="{"products.newest"|fn_url}" class="ty-btn ty-btn__secondary ty-btn__big"> {__("discover_newest_products")} </a> </a>";} 0 130 4 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 1 en Discover Latest Btn
115 87 a:1:{s:7:"content";s:166:"<div class="ath-free-btn-section"> <a href="{"products.on_sale"|fn_url}" class="ty-btn ty-btn__secondary ty-btn__big"> {__("shop_products_on_sale")} </a> </a>";} 0 134 4 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 1 en Shop Sale Btn
108 76 0 120 blocks/wrappers/onclick_dropdown.tpl ath_s__margin_right 5 A my_account a:1:{s:8:"template";s:21:"blocks/my_account.tpl";} 0 1 en Account
115 88 a:1:{s:5:"items";a:4:{s:7:"filling";s:8:"manually";s:8:"item_ids";s:23:"166,167,203,219,223,228";s:13:"subcategories";s:1:"N";s:10:"alt_banner";s:1:"Y";}} 0 135 blocks/wrappers/mainbox_simple.tpl 5 A ath_categories_catalog a:5:{s:8:"template";s:49:"addons/ath_category_page/blocks/standart_grid.tpl";s:13:"name_position";s:12:"image_center";s:7:"columns";s:1:"3";s:11:"image_width";s:3:"475";s:12:"image_height";s:0:"";} 0 1 en Shop by Category
108 77 0 121 7 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