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 (
    849, 850, 851, 852, 853, 855, 854, 858, 
    859, 864, 865, 860, 863, 861, 862, 1076, 
    962, 963, 964, 965
  ) 
  AND cscart_bm_blocks_descriptions.lang_code = 'ar' 
ORDER BY 
  cscart_bm_snapping.order, 
  cscart_bm_snapping.block_id

Query time 0.00173

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "1334.91"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "936.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": 26,
            "rows_produced_per_join": 26,
            "filtered": "100.00",
            "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_bm_snapping`.`grid_id` in (849,850,851,852,853,855,854,858,859,864,865,860,863,861,862,1076,962,963,964,965))",
            "cost_info": {
              "read_cost": "14.11",
              "eval_cost": "2.60",
              "prefix_cost": "16.71",
              "data_read_per_join": "20K"
            },
            "used_columns": [
              "snapping_id",
              "block_id",
              "grid_id",
              "wrapper",
              "user_class",
              "order",
              "status",
              "cp_lazyload",
              "cp_hide_snapping",
              "cp_preload_img"
            ]
          }
        },
        {
          "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": [
              "softwarepirmam_hewadelivard_cscart_4.cscart_bm_snapping.snapping_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 26,
            "filtered": "100.00",
            "index_condition": "<if>(is_not_null_compl(cscart_bm_block_statuses), ((`softwarepirmam_hewadelivard_cscart_4`.`cscart_bm_snapping`.`snapping_id` = `softwarepirmam_hewadelivard_cscart_4`.`cscart_bm_block_statuses`.`snapping_id`) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_bm_block_statuses`.`object_type` like '')), true)",
            "cost_info": {
              "read_cost": "6.50",
              "eval_cost": "2.60",
              "prefix_cost": "25.81",
              "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": [
              "softwarepirmam_hewadelivard_cscart_4.cscart_bm_snapping.block_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 26,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "6.50",
              "eval_cost": "2.60",
              "prefix_cost": "34.91",
              "data_read_per_join": "5K"
            },
            "used_columns": [
              "block_id",
              "type",
              "properties",
              "company_id",
              "storefront_id",
              "fpc_exclude_cache",
              "cp_hide_block"
            ]
          }
        },
        {
          "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": [
              "softwarepirmam_hewadelivard_cscart_4.cscart_bm_snapping.block_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 26,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "6.50",
              "eval_cost": "2.60",
              "prefix_cost": "44.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": [
              "softwarepirmam_hewadelivard_cscart_4.cscart_bm_snapping.block_id",
              "const",
              "softwarepirmam_hewadelivard_cscart_4.cscart_bm_blocks_descriptions.lang_code",
              "const"
            ],
            "rows_examined_per_scan": 3,
            "rows_produced_per_join": 78,
            "filtered": "100.00",
            "index_condition": "<if>(is_not_null_compl(default_content), (`softwarepirmam_hewadelivard_cscart_4`.`default_content`.`object_type` like ''), true)",
            "cost_info": {
              "read_cost": "19.50",
              "eval_cost": "7.80",
              "prefix_cost": "71.31",
              "data_read_per_join": "17K"
            },
            "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": [
              "softwarepirmam_hewadelivard_cscart_4.cscart_bm_snapping.block_id"
            ],
            "rows_examined_per_scan": 12,
            "rows_produced_per_join": 936,
            "filtered": "100.00",
            "index_condition": "<if>(is_not_null_compl(dynamic_object_content), ((`softwarepirmam_hewadelivard_cscart_4`.`dynamic_object_content`.`object_id` = 0) and (`softwarepirmam_hewadelivard_cscart_4`.`dynamic_object_content`.`lang_code` = `softwarepirmam_hewadelivard_cscart_4`.`cscart_bm_blocks_descriptions`.`lang_code`) and (`softwarepirmam_hewadelivard_cscart_4`.`dynamic_object_content`.`object_type` like '')), true)",
            "cost_info": {
              "read_cost": "234.00",
              "eval_cost": "93.60",
              "prefix_cost": "398.91",
              "data_read_per_join": "204K"
            },
            "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 cp_lazyload cp_hide_snapping cp_preload_img type properties company_id storefront_id fpc_exclude_cache cp_hide_block lang_code name
965 30 a:1:{s:5:"items";a:2:{s:7:"filling";s:8:"manually";s:8:"item_ids";s:0:"";}} 0 1148 blocks/wrappers/abt__ut2__sidebox_important.tpl ut2-filters hidden-phone 0 A N N product_filters a:1:{s:8:"template";s:48:"blocks/product_filters/for_category/original.tpl";} 0 1 N N Ar Product filters
849 75 0 1014 0 D N N geo_maps_customer_location a:1:{s:8:"template";s:44:"addons/geo_maps/blocks/customer_location.tpl";} 0 1 N N Ar Customer location
850 76 a:1:{s:4:"menu";i:6;} 0 1015 top-quick-links hidden-phone 0 A N N menu a:5:{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";s:40:"abt__no_hidden_elements_third_level_view";i:5;} 0 1 N N Ar Quick links
859 87 0 1029 blocks/wrappers/footer_general.tpl hidden-phone 0 A N N template a:5:{s:8:"template";s:53:"blocks/static_templates/my_account_links_advanced.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 N N ar حسابي
862 90 a:1:{s:7:"content";s:569:"<ul> <li>Address: {$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_6')}-{__('weekday_abr_4')} 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> </ul>";} 0 1032 blocks/wrappers/footer_general.tpl footer-no-wysiwyg hidden-phone 0 A N N 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 N N ar اتصل بنا
964 149 a:1:{s:5:"items";a:2:{s:7:"filling";s:8:"manually";s:8:"item_ids";s:0:"";}} 0 1146 0 A N N product_filters a:1:{s:8:"template";s:65:"blocks/product_filters/for_category/abt__ut2_selected_filters.tpl";} 0 1 N N Ar Selected product filters
962 163 a:1:{s:5:"items";a:2:{s:7:"filling";s:8:"manually";s:8:"item_ids";s:0:"";}} 0 1143 hidden-phone 0 D N N product_filters a:1:{s:8:"template";s:58:"blocks/product_filters/for_category/horizontal_filters.tpl";} 0 1 N N Ar Product filters (horizontal)
963 164 0 1145 0 A N N template a:1:{s:8:"template";s:58:"blocks/static_templates/abt__ut2__features_title_block.tpl";} 0 1 N N Ar Features page title
854 171 0 1023 ut2-top 0 A N N 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:"";} 0 1 N N Ar AB: Buttons Compare and Wishlist
852 189 a:1:{s:13:"settings_link";s:0:"";} 0 1018 0 A N N abt__ut2_fly_menu a:7:{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:"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:27:"open_on_sticky_panel_button";s:1:"Y";s:40:"abt__no_hidden_elements_third_level_view";s:2:"10";} 0 1 N N Ar Menu
1076 197 a:1:{s:7:"content";s:1778:"<!--Use the below code snippet to provide real time updates to the live chat plugin without the need of copying and paste each time to your website when changes are made via PBX--> <call-us-selector phonesystem-url="https://pirpbx.3cx.ae:5001" party="LiveChat758207"></call-us-selector> <!--Incase you don't want real time updates to the live chat plugin when options are changed, use the below code snippet. Please note that each time you change the settings you will need to copy and paste the snippet code to your website--> <!--<call-us phonesystem-url="https://pirpbx.3cx.ae:5001" style="position:fixed;font-size:16px;line-height:17px;z-index: 99999;--call-us-main-accent-color:#ff5733;--call-us-main-background-color:#FFFFFF;--call-us-plate-background-color:#ff5733;--call-us-plate-font-color:#ffffff;--call-us-main-font-color:#292929;--call-us-agent-bubble-color:#29292910;right: 20px; bottom: 20px;" id="wp-live-chat-by-3CX" minimized="true" animation-style="fadein" party="LiveChat758207" minimized-style="bubbleright" allow-call="true" allow-video="false" allow-soundnotifications="true" enable-mute="true" enable-onmobile="true" offline-enabled="true" enable="true" ignore-queueownership="false" authentication="both" operator-name="Support" show-operator-actual-name="false" aknowledge-received="true" gdpr-enabled="false" message-userinfo-format="both" message-dateformat="both" lang="browser" button-icon-type="default" greeting-visibility="none" greeting-offline-visibility="none" chat-delay="2000" enable-direct-call="true" enable-ga="false" ></call-us>--> <script defer src="https://downloads-global.3cx.com/downloads/livechatandtalk/v1/callus.js" id="tcx-callus-js" charset="utf-8"></script>";} 0 1282 hidden-phone hidden-tablet 0 A N N 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 N N ar 3cx-LiveChat
964 11 0 1147 1 A N N main 0 1 N N Ar Main Content
854 86 0 1024 ut2-top-my-account 1 A N N 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:"";} 0 1 Y N ar حسابي
860 88 a:1:{s:7:"content";s:341:"<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="{"pages.view?page_id=30"|fn_url}">اتصل بنا</a></li> <li class="ty-footer-menu__item"><a href="{"product_features.view_all"|fn_url}">الماركات</a></li> </ul>";} 0 1030 blocks/wrappers/footer_general.tpl footer-no-wysiwyg hidden-phone 1 A N N 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 N N ar عن دليفارد
962 145 a:1:{s:5:"items";a:2:{s:7:"filling";s:8:"manually";s:8:"item_ids";s:0:"";}} 0 1144 blocks/wrappers/abt__ut2_onclick_dropdown_outside_position.tpl ut2-filters hidden-tablet hidden-desktop 1 A N N product_filters a:1:{s:8:"template";s:48:"blocks/product_filters/for_category/original.tpl";} 0 1 N N Ar Filters
853 192 0 1021 ut2-search 1 A N N template a:2:{s:8:"template";s:34:"blocks/static_templates/search.tpl";s:22:"abt__ut2_demo_block_id";s:0:"";} 0 1 N N Ar Search
864 18 0 1033 2 D N N 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:"";} 0 1 N N Ar Copyright
865 19 0 1034 2 D N N template a:1:{s:8:"template";s:41:"blocks/static_templates/payment_icons.tpl";} 0 1 N N Ar Payment icons
850 78 a:1:{s:4:"text";s:0:"";} 0 1017 top-languages 2 A N N languages a:7:{s:8:"template";s:20:"blocks/languages.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:6:"format";s:4:"name";s:14:"dropdown_limit";s:1:"0";} 0 1 N N ar Languages
853 82 0 1022 2 A N N 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 N N Ar Contacts
854 85 0 1025 ut2-top-cart-content 2 A N N 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 Y N Ar Cart content
861 89 a:1:{s:7:"content";s:538:" <ul id="customer_service_links"> <li class="ty-footer-menu__item"><a href="{"orders.search"|fn_url}" rel="nofollow">حول طلبك</a></li> <li class="ty-footer-menu__item"><a href="{"privacy-policy/?action=preview"|fn_url}" rel="nofollow">سياسة الخصوصية</a></li> <li class="ty-footer-menu__item"><a href="{"our-team/?action=preview"|fn_url}" rel="nofollow">الشروط والأحكام</a></li> </ul>";} 0 1031 blocks/wrappers/footer_general.tpl footer-no-wysiwyg hidden-phone 2 A N N 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 N N ar خدمة العملاء
855 193 a:1:{s:4:"menu";s:1:"1";} 0 1026 2 A N N 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: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:"N";} 0 1 N N Ar Main menu
852 184 0 1019 top-logo 5 A N N 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 N N Ar Logo