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 = 30 
  AND dynamic_object_content.object_type like 'pages' 
WHERE 
  cscart_bm_snapping.grid_id IN (
    187, 188, 189, 193, 190, 194, 192, 195, 
    191, 198, 203, 199, 200, 201, 202, 204, 
    270, 265, 266, 267, 268, 269
  ) 
  AND cscart_bm_blocks_descriptions.lang_code = 'en' 
ORDER BY 
  cscart_bm_snapping.order, 
  cscart_bm_snapping.block_id

Query time 0.00095

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "233.51"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "120.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": 30,
            "rows_produced_per_join": 30,
            "filtered": "100.00",
            "index_condition": "(`wearethehelpful_scalesta_net`.`cscart_bm_snapping`.`grid_id` in (187,188,189,193,190,194,192,195,191,198,203,199,200,201,202,204,270,265,266,267,268,269))",
            "cost_info": {
              "read_cost": "16.01",
              "eval_cost": "3.00",
              "prefix_cost": "19.01",
              "data_read_per_join": "23K"
            },
            "used_columns": [
              "snapping_id",
              "block_id",
              "grid_id",
              "wrapper",
              "user_class",
              "order",
              "status"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_bm_blocks",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "block_id"
            ],
            "key_length": "4",
            "ref": [
              "wearethehelpful_scalesta_net.cscart_bm_snapping.block_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 30,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "7.50",
              "eval_cost": "3.00",
              "prefix_cost": "29.51",
              "data_read_per_join": "6K"
            },
            "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": [
              "wearethehelpful_scalesta_net.cscart_bm_snapping.block_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 30,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "7.50",
              "eval_cost": "3.00",
              "prefix_cost": "40.01",
              "data_read_per_join": "6K"
            },
            "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": [
              "wearethehelpful_scalesta_net.cscart_bm_snapping.block_id",
              "const",
              "wearethehelpful_scalesta_net.cscart_bm_blocks_descriptions.lang_code",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 30,
            "filtered": "100.00",
            "index_condition": "<if>(is_not_null_compl(default_content), (`wearethehelpful_scalesta_net`.`default_content`.`object_type` like ''), true)",
            "cost_info": {
              "read_cost": "7.50",
              "eval_cost": "3.00",
              "prefix_cost": "50.51",
              "data_read_per_join": "6K"
            },
            "used_columns": [
              "snapping_id",
              "object_id",
              "object_type",
              "block_id",
              "lang_code",
              "content"
            ]
          }
        },
        {
          "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": [
              "wearethehelpful_scalesta_net.cscart_bm_snapping.snapping_id"
            ],
            "rows_examined_per_scan": 2,
            "rows_produced_per_join": 60,
            "filtered": "100.00",
            "index_condition": "<if>(is_not_null_compl(cscart_bm_block_statuses), ((`wearethehelpful_scalesta_net`.`cscart_bm_snapping`.`snapping_id` = `wearethehelpful_scalesta_net`.`cscart_bm_block_statuses`.`snapping_id`) and (`wearethehelpful_scalesta_net`.`cscart_bm_block_statuses`.`object_type` like 'pages')), true)",
            "cost_info": {
              "read_cost": "15.00",
              "eval_cost": "6.00",
              "prefix_cost": "71.51",
              "data_read_per_join": "7K"
            },
            "used_columns": [
              "snapping_id",
              "object_ids",
              "object_type"
            ]
          }
        },
        {
          "table": {
            "table_name": "dynamic_object_content",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "block_id"
            ],
            "key_length": "4",
            "ref": [
              "wearethehelpful_scalesta_net.cscart_bm_snapping.block_id"
            ],
            "rows_examined_per_scan": 2,
            "rows_produced_per_join": 120,
            "filtered": "100.00",
            "index_condition": "<if>(is_not_null_compl(dynamic_object_content), ((`wearethehelpful_scalesta_net`.`dynamic_object_content`.`object_id` = 30) and (`wearethehelpful_scalesta_net`.`dynamic_object_content`.`lang_code` = `wearethehelpful_scalesta_net`.`cscart_bm_blocks_descriptions`.`lang_code`) and (`wearethehelpful_scalesta_net`.`dynamic_object_content`.`object_type` like 'pages')), true)",
            "cost_info": {
              "read_cost": "30.00",
              "eval_cost": "12.00",
              "prefix_cost": "113.51",
              "data_read_per_join": "26K"
            },
            "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
195 4 0 208 blocks/wrappers/onclick_dropdown.tpl 0 A my_account a:1:{s:8:"template";s:21:"blocks/my_account.tpl";} 0 1 en My Account
194 5 0 207 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
191 8 0 229 top-cart 0 D 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
266 11 0 274 0 A main 0 1 en Main Content
187 64 a:1:{s:7:"content";s:585:"<ul class="th-social-top"> <!-- <li><a href="https://facebook.com" target="_blank"><img src="../../../../../../../../design/themes/the_helpful/media/images/socials/facebook_icon.png" alt=""></a></li> <li><a href="https://pinterest.com" target="_blank"><img src="../../../../../../../../design/themes/the_helpful/media/images/socials/pinterest_icon.png" alt=""></a></li> --> <li><a href="https://www.instagram.com/wearethehelpful" target="_blank"><img src="../../../../../../../../design/themes/the_helpful/media/images/socials/instagram_icon.png" alt=""></a></li> </ul>";} 0 201 0 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 1 en Social Top
193 65 a:1:{s:7:"content";s:86:"<nav> <div class="toggle-wrap"> <span class="toggle-bar"></span> </div> </nav>";} 0 205 0 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 1 en Mobile Toggle Button
193 66 a:1:{s:4:"menu";s:1:"6";} 0 206 blocks/wrappers/onclick_dropdown.tpl th-side-categories 0 A menu a:2:{s:8:"template";s:33:"blocks/menu/dropdown_vertical.tpl";s:25:"right_to_left_orientation";s:1:"N";} 0 1 en Main menu mobile
200 67 a:1:{s:4:"menu";s:2:"10";} 0 213 blocks/wrappers/footer_general.tpl 0 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 About
201 68 a:1:{s:4:"menu";s:2:"11";} 0 214 blocks/wrappers/footer_general.tpl 0 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 Help
204 69 a:1:{s:7:"content";s:367:"<div class="th-copyright"> <p>© Copyright 2024 – We Are the Helpful</p> <a href="/marketplace-terms-and-conditions/">Marketplace T&C’s</a> <a href="/website-terms-and-conditions/">Website T&C’s</a> <a href="/privacy-policy/">Privacy Policy</a> <a href="/cookie-policy/">Cookie Policy</a> <span>Give help, not stuff.</span> </div>";} 0 216 0 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 1 en Copyright
269 79 a:1:{s:7:"content";s:444:"<div class="th-footer-banners insta-banner"> <h2 class="ty-mainbox-simple-title">Let's be Insta Friends </h2> <p>@wearethehelpful</p> <div> <img src="{$self_images_dir}/banners/food-1.jpg" alt=""> <img src="{$self_images_dir}/banners/food-2.jpg" alt=""> <img src="{$self_images_dir}/banners/self-care-1.jpg" alt=""> <img src="{$self_images_dir}/banners/self-care-2.jpg" alt=""> </div> </div>";} 0 30 277 0 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 1 en Footer Banners
270 80 0 278 0 A template a:1:{s:8:"template";s:61:"addons/my_changes/blocks/static_templates/category_search.tpl";} 0 1 en Product search
202 83 a:1:{s:4:"menu";s:2:"12";} 0 242 blocks/wrappers/footer_general.tpl 0 D 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 Partners
265 100 a:1:{s:7:"content";s:20:"<h1>Let's chat.</h1>";} 0 273 0 A html_block a:1:{s:8:"template";s:21:"blocks/html_block.tpl";} 0 1 en Contact Us Heading
267 101 a:1:{s:7:"content";s:8411:"<div class="th-partner-faqs" id="partners-faqs"> <p class="sub-heading text-center">When you purchase a beautiful, impactful gift via We are The Helpful, you are buying directly from a wonderful Partner within our Partnership Collective. In some instances, the product or bundle you are purchasing will be managed exclusively by We are The Helpful - but this will be outlined on the product information page.</p> <div class="th-faqs"> <div class="th-faqs__items"> <div class="th-faqs__item active"> <h3 class="th-faqs__item-question"> Who is, We are The Helpful? <img src="/design/themes/the_helpful/media/images/icons/arrow.png" alt=""> </h3> <p class="th-faqs__item-answer">We are a gifting marketplace and online platform where buyers and sellers can connect to purchase and sell a wide variety of products, experiences and services. Our purpose is to create a curated destination for Helpful Gifting: gifting that is high quality and truly impactful for both yourself and your loved ones. </p> </div> <div class="th-faqs__item"> <h3 class="th-faqs__item-question"> How do I create an account? <img src="/design/themes/the_helpful/media/images/icons/arrow.png" alt=""> </h3> <p class="th-faqs__item-answer">To create an account, click on the "Sign Up" button on the top right corner of our homepage. You will be prompted to provide your email address and create a password. Follow the instructions to complete the registration process.</p> </div> <div class="th-faqs__item"> <h3 class="th-faqs__item-question"> Is my personal information secure? <img src="/design/themes/the_helpful/media/images/icons/arrow.png" alt=""> </h3> <p class="th-faqs__item-answer">Yes, we prioritise the security of your personal information. We use advanced encryption and security protocols to protect your data.</p> </div> <div class="th-faqs__item"> <h3 class="th-faqs__item-question"> I have some questions and need some help, how can I contact customer support? <img src="/design/themes/the_helpful/media/images/icons/arrow.png" alt=""> </h3> <p class="th-faqs__item-answer">You can reach our customer support team by clicking on the "Contact Us" link at the top of the page. Alternatively, you can email us at help@wearethehelpful.com and we will get back to you as soon as we can. Alternatively, if your query is regarding a recent purchase, your best course of action is to contact the Partner directly.</p> </div> <div class="th-faqs__item"> <h3 class="th-faqs__item-question"> How does delivery work? <img src="/design/themes/the_helpful/media/images/icons/arrow.png" alt=""> </h3> <p class="th-faqs__item-answer">Each Partner will have different delivery structures, processes and options and they will be clearly stated on the Product information page. At the point of sale, each Partner will manage the delivery and fulfilment of the order directly with you. At the point of sale, you will have the option to communicate directly with the Partner to address any questions or concerns you may have. If you have purchased multiple items from different Partners, they may arrive in multiple packages. It will be really important that you inform the Gift Receiver of any delivery details, updates and changes.</p> </div> <div class="th-faqs__item"> <h3 class="th-faqs__item-question"> How do I make a purchase? <img src="/design/themes/the_helpful/media/images/icons/arrow.png" alt=""> </h3> <p class="th-faqs__item-answer">To make a purchase, browse or search for the item and gift you are interested in, add it to your cart, and proceed to checkout. You will need to provide payment and shipping information to complete your order. Your order will then be sent to the Partner to finalise and fulfil.</p> </div> <div class="th-faqs__item"> <h3 class="th-faqs__item-question"> What payment methods are accepted? <img src="/design/themes/the_helpful/media/images/icons/arrow.png" alt=""> </h3> <p class="th-faqs__item-answer">We accept all major credit and debit cards.</p> </div> <div class="th-faqs__item"> <h3 class="th-faqs__item-question"> How long will delivery take? <img src="/design/themes/the_helpful/media/images/icons/arrow.png" alt=""> </h3> <p class="th-faqs__item-answer">Delivery times vary depending on the Partner and the shipping method chosen. Estimated delivery times are provided on each product page. </p> </div> <div class="th-faqs__item"> <h3 class="th-faqs__item-question"> What is your return and refund policy? <img src="/design/themes/the_helpful/media/images/icons/arrow.png" alt=""> </h3> <p class="th-faqs__item-answer">We are The Helpful is a marketplace therefore return policies are specific to our individual Partners, so please contact them in the first instance for support. We are The Helpful’s Partners are committed to ensuring you are happy with your purchase, however in the event that you aren’t, you have 14 days from the day you receive the item to notify the seller and arrange a refund. In the case that a refund has been agreed upon with the Partner, as the seller’s payment agent, We are The Helpful will process the refund directly to your card in which the payment was made, no more than: 14 days after the day the product is received by the seller; or if earlier, 14 days after the date you provide evidence that you have returned the product to the seller; or if there were no goods supplied, 14 days after the day on which you informed the seller or us (via Step 1 above) about your decision to cancel your order. Please note that perishable or made to order / personalised items aren’t refundable unless faulty. Please speak with the Partner prior to destroying the item in the case that it can support discussions and improvements in the future. </p> </div> <div class="th-faqs__item"> <h3 class="th-faqs__item-question"> I want to cancel my order, what do I do? <img src="/design/themes/the_helpful/media/images/icons/arrow.png" alt=""> </h3> <p class="th-faqs__item-answer">To cancel an order, please contact the Partner as soon as possible to let them know. To contact a Partner: Go into your account and select ‘Orders’ Locate your order, and click ‘Contact Seller’ Send a message to the Partner to notify them of cancellation. The Partner will be in touch to detail the process as per their own refunds and cancellations conditions. </p> </div> <div class="th-faqs__item"> <h3 class="th-faqs__item-question"> My order hasn’t arrived, what do I do? <img src="/design/themes/the_helpful/media/images/icons/arrow.png" alt=""> </h3> <p class="th-faqs__item-answer">You will receive an email outlining when your order is on its way to you or the gift recipient, and you can also check the status of your order in your account. Please contact the Partner directly if the goods were dispatched several days ago, or if you have received a left delivery card (steps to contact Partner are outlined above).<br> If you are needing any extra assistance, please don’t hesitate to contact us at help@wearethehelpful.com and we will be happy to assist you. </p> </div> </div> </div> </div>";} 0 275 blocks/wrappers/mainbox_simple.tpl 0 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 1 en General FAQs
268 102 a:1:{s:7:"content";s:764:"<div class="th-find-us"> <h1>You Can Find Us Here</h1> <a href="mailto:info@wearethehelpful.com"><img src="/design/themes/the_helpful/media/images/icons/plane.png" alt=""> Email: info@wearethehelpful.com</a> <a href="tel:+921234567890"><img src="/design/themes/the_helpful/media/images/icons/call.png" alt=""> Phone: +92 123 4567890</a> <div> <a href="https://facebook.com"><img src="/design/themes/the_helpful/media/images/icons/facebook-white.png" alt=""></a> <a href="https://linkedin.com"><img src="/design/themes/the_helpful/media/images/icons/linkedin-white.png" alt=""></a> <a href="https://twitter.com"><img src="/design/themes/the_helpful/media/images/icons/twitter-white.png" alt=""></a> </div> </div>";} 0 30 276 0 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 1 en Find Us Heading
190 117 a:1:{s:4:"menu";s:1:"6";} 0 312 0 A as_mega_menu a:3:{s:8:"template";s:55:"addons/as_mega_menu/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 Mega Menu
191 118 0 313 0 A side_cart_content a:7:{s:8:"template";s:48:"addons/as_side_cart/blocks/side_cart_content.tpl";s:9:"icon_type";s:8:"outlined";s:10:"icon_color";s:7:"#76787e";s:11:"badge_color";s:7:"#faaa8f";s:16:"heading_bg_color";s:7:"#faaa8f";s:18:"heading_text_color";s:7:"#FFFFFF";s:13:"body_bg_color";s:7:"#FFFFFF";} 0 1 en Side cart
199 155 a:1:{s:7:"content";s:206:"<p><br></p> <div id="fd-form-66bcc4b353d124a83cc7f773"></div> <script> window.fd('form', { formId: '66bcc4b353d124a83cc7f773', containerEl: '#fd-form-66bcc4b353d124a83cc7f773' }); </script>";} 0 564 blocks/wrappers/footer_general.tpl 0 A html_block a:1:{s:8:"template";s:21:"blocks/html_block.tpl";} 0 1 en Let's Stay Connected
199 210 a:3:{s:5:"width";s:3:"200";s:6:"height";s:3:"200";s:5:"items";a:2:{s:7:"filling";s:8:"manually";s:8:"item_ids";s:3:"131";}} 0 1233 blocks/wrappers/footer_general.tpl 0 A banners a:1:{s:8:"template";s:34:"addons/banners/blocks/original.tpl";} 0 1 en Proudly Part of Buy Women Built
191 4 0 204 blocks/wrappers/onclick_dropdown.tpl top-my-account 1 A my_account a:1:{s:8:"template";s:21:"blocks/my_account.tpl";} 0 1 en My Account
199 12 0 211 1 D template a:1:{s:8:"template";s:65:"addons/newsletters/blocks/static_templates/subscribe_advanced.tpl";} 0 1 en Join our Inner Circle
195 118 0 556 1 A side_cart_content a:7:{s:8:"template";s:48:"addons/as_side_cart/blocks/side_cart_content.tpl";s:9:"icon_type";s:8:"outlined";s:10:"icon_color";s:7:"#76787e";s:11:"badge_color";s:7:"#faaa8f";s:16:"heading_bg_color";s:7:"#faaa8f";s:18:"heading_text_color";s:7:"#FFFFFF";s:13:"body_bg_color";s:7:"#FFFFFF";} 0 1 en Side cart
189 5 0 202 top-logo 2 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
191 7 0 230 blocks/wrappers/onclick_dropdown.tpl top-search 2 A template a:1:{s:8:"template";s:34:"blocks/static_templates/search.tpl";} 0 1 en Search
190 9 a:1:{s:4:"menu";s:1:"6";} 0 203 top-menu 2 D 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:2:"10";} 0 1 en Main menu
199 13 a:1:{s:7:"content";s:683:"<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"><span class="ty-icon ty-icon-facebook"></span>Facebook</a> </div> <div class="ty-social-link instagram"> <a href="https://www.instagram.com"><span class="ty-icon ty-icon-instagram"></span>Instagram</a> </div> <div class="ty-social-link twitter"> <a href="https://twitter.com"><span class="ty-icon ty-icon-twitter"></span>Twitter</a> </div> <div class="ty-social-link youtube"> <a href="https://www.youtube.com/user/cscartvideos"><span class="ty-icon ty-icon-youtube"></span>Youtube</a> </div></div> ";} 0 212 2 D safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 1 en Social links