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 (
    273, 274, 275, 276, 277, 278, 279, 280, 
    281, 284, 287, 292, 285, 286, 288, 289, 
    290, 291, 293, 294, 295, 296, 297, 298, 
    299, 300, 301, 302, 303, 304
  ) 
  AND cscart_bm_blocks_descriptions.lang_code = 'en' 
ORDER BY 
  cscart_bm_snapping.order, 
  cscart_bm_snapping.block_id

Query time 0.00645

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.409385264,
    "nested_loop": [
      {
        "table": {
          "table_name": "cscart_bm_block_statuses",
          "access_type": "system",
          "possible_keys": ["snapping_id"],
          "rows": 0,
          "filtered": 0,
          "const_row_not_found": true
        }
      },
      {
        "read_sorted_file": {
          "filesort": {
            "sort_key": "cscart_bm_snapping.`order`, cscart_bm_snapping.block_id",
            "table": {
              "table_name": "cscart_bm_snapping",
              "access_type": "ALL",
              "possible_keys": ["grid_id"],
              "loops": 1,
              "rows": 299,
              "cost": 0.057281495,
              "filtered": 10.70234108,
              "attached_condition": "cscart_bm_snapping.grid_id in (273,274,275,276,277,278,279,280,281,284,287,292,285,286,288,289,290,291,293,294,295,296,297,298,299,300,301,302,303,304)"
            }
          }
        }
      },
      {
        "table": {
          "table_name": "cscart_bm_blocks",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "4",
          "used_key_parts": ["block_id"],
          "ref": ["batterycube.cscart_bm_snapping.block_id"],
          "loops": 32,
          "rows": 1,
          "cost": 0.055533632,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "cscart_bm_blocks_descriptions",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "10",
          "used_key_parts": ["block_id", "lang_code"],
          "ref": ["batterycube.cscart_bm_snapping.block_id", "const"],
          "loops": 32,
          "rows": 1,
          "cost": 0.055738432,
          "filtered": 100,
          "index_condition": "cscart_bm_blocks_descriptions.lang_code = 'en'"
        }
      },
      {
        "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": [
            "batterycube.cscart_bm_snapping.block_id",
            "const",
            "batterycube.cscart_bm_blocks_descriptions.lang_code",
            "const"
          ],
          "loops": 32,
          "rows": 1,
          "cost": 0.061565792,
          "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": ["batterycube.cscart_bm_snapping.block_id"],
          "loops": 40.32,
          "rows": 2,
          "cost": 0.126239923,
          "filtered": 100,
          "attached_condition": "trigcond(dynamic_object_content.lang_code = cscart_bm_blocks_descriptions.lang_code and dynamic_object_content.object_id = 0 and dynamic_object_content.object_type like '')"
        }
      }
    ]
  }
}

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
277 74 0 313 top-logo 0 A template a:2:{s:8:"template";s:32:"blocks/static_templates/logo.tpl";s:11:"enable_link";s:1:"Y";} 0 2 en Logo
276 103 0 312 blocks/wrappers/onclick_dropdown.tpl top-my-account hidden-phone 0 A my_account a:1:{s:8:"template";s:21:"blocks/my_account.tpl";} 0 2 en My Account
279 105 0 315 hidden-phone 0 A call_request a:1:{s:8:"template";s:44:"addons/call_requests/blocks/call_request.tpl";} 0 2 en Call Request
288 118 0 322 blocks/wrappers/footer_general.tpl 0 A template a:1:{s:8:"template";s:44:"blocks/static_templates/my_account_links.tpl";} 0 2 en My account
291 122 a:1:{s:7:"content";s:394:"<ul> <li>3993 Hanover Street<br/>New York, NY 10016 </li> <li><bdi>+19177227425</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 326 blocks/wrappers/footer_general.tpl footer-no-wysiwyg footer-contacts 0 D safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 2 en About us
281 125 a:1:{s:4:"menu";s:1:"2";} 0 317 top-menu hidden-phone 0 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 2 en Main menu
295 132 a:1:{s:5:"items";a:4:{s:7:"filling";s:6:"newest";s:6:"period";s:1:"A";s:9:"last_days";s:2:"30";s:5:"limit";s:1:"3";}} 0 329 homepage-banners energex-defense-banners 0 D banners a:3:{s:8:"template";s:34:"addons/banners/blocks/carousel.tpl";s:10:"navigation";s:1:"A";s:5:"delay";s:1:"4";} 0 2 en Energex DoD Hero Banners
288 119 a:1:{s:7:"content";s:261:" <ul id="demo_store_links"> <li class="ty-footer-menu__item"><a href="{"companies.apply_for_vendor"|fn_url}">Apply for a seller account</a></li> <li class="ty-footer-menu__item"><a href="{"pages.view?page_id=15"|fn_url}">Vendor terms & conditions</a></li> </ul>";} 0 323 blocks/wrappers/footer_general.tpl footer-no-wysiwyg 1 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 2 en Become a seller
289 120 a:1:{s:4:"menu";s:1:"3";} 0 324 blocks/wrappers/footer_general.tpl footer-menu-shop 1 A menu a:2:{s:8:"template";s:26:"blocks/menu/text_links.tpl";s:18:"show_items_in_line";s:1:"N";} 0 2 en Shop
296 133 a:1:{s:7:"content";s:441:" <div class="energex-defense-intro"> <h1>Defense &amp; Government Battery Supply</h1> <p>Request-first procurement workflow for DoD-oriented, government, contractor, aviation, communications, and mission-critical power requirements.</p> <div class="energex-defense-badges"> <span>RFQ Driven</span> <span>NSN / Spec Support</span> <span>Bulk Procurement</span> <span>Hard-to-Source Battery Support</span> </div> </div>";} 0 330 energex-intro-block 1 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 2 en Energex Defense Intro
280 76 0 316 top-cart-content hidden-phone 2 A cart_content a:5:{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";s:20:"generate_block_title";s:1:"Y";} 0 2 en Cart content
293 85 0 327 2 D template a:1:{s:8:"template";s:37:"blocks/static_templates/copyright.tpl";} 0 2 en Copyright
285 116 0 320 2 A template a:1:{s:8:"template";s:65:"addons/newsletters/blocks/static_templates/subscribe_advanced.tpl";} 0 2 en Subscribe
286 117 a:1:{s:7:"content";s:861:"<div class="ty-social-link-block"><h3 class="ty-social-link__title">{__("get_social")}</h3> <div class="ty-social-link-container"> <div class="ty-social-link facebook"> <a target="_blank" href="http://www.facebook.com/pages/CS-Cart/156687676230"><span class="ty-icon ty-icon-facebook"></span></a> </div> <div class="ty-social-link instagram"> <a target="_blank" href="https://www.instagram.com"><span class="ty-icon ty-icon-instagram"></span></a> </div> <div class="ty-social-link twitter xcom"> <a target="_blank" href="https://twitter.com/cscart"><span class="ty-icon ty-icon-twitter ty-icon-xcom"></span></a> </div> <div class="ty-social-link youtube"> <a target="_blank" href="https://www.youtube.com/user/cscartvideos"><span class="ty-icon ty-icon-youtube"></span></a> </div> </div></div>";} 0 321 2 D safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 2 en Social links
290 121 a:1:{s:4:"menu";s:1:"4";} 0 325 blocks/wrappers/footer_general.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 2 en Create order
294 123 0 328 2 A template a:1:{s:8:"template";s:41:"blocks/static_templates/payment_icons.tpl";} 0 2 en Payment icons
278 124 0 314 top-search 2 A template a:1:{s:8:"template";s:34:"blocks/static_templates/search.tpl";} 0 2 en Search
273 126 a:1:{s:4:"text";s:0:"";} 0 309 top-languages 2 A languages a:3:{s:8:"template";s:20:"blocks/languages.tpl";s:6:"format";s:4:"icon";s:14:"dropdown_limit";s:1:"0";} 0 2 en Languages
297 134 a:1:{s:7:"content";s:1807:"<div class="energex-rfq-panel"> <h2>Request a Quote</h2> <p>Submit your requirement and our team can review battery type, quantity, application, NSN reference, and timing.</p> <form class="energex-rfq-form" action="{"energex_rfq.submit"|fn_url}" method="post"> <input type="hidden" name="redirect_url" value="{"index.index"|fn_url}" /> <div class="energex-form-row"> <input type="text" name="rfq[name]" placeholder="Full Name" required /> <input type="text" name="rfq[company]" placeholder="Company / Agency" required /> </div> <div class="energex-form-row"> <input type="email" name="rfq[email]" placeholder="Email Address" required /> <input type="text" name="rfq[phone]" placeholder="Phone Number" /> </div> <div class="energex-form-row"> <input type="text" name="rfq[battery_type]" placeholder="Battery Type Needed" /> <input type="text" name="rfq[quantity]" placeholder="Quantity" /> </div> <div class="energex-form-row"> <input type="text" name="rfq[nsn]" placeholder="NSN / Part Number (optional)" /> <select name="rfq[urgency]"> <option value="">Urgency</option> <option>Standard</option> <option>Urgent</option> <option>Immediate</option> </select> </div> <div class="energex-form-row energex-form-row-full"> <textarea name="rfq[notes]" placeholder="Project details, platform, equipment, specifications, or delivery requirements"></textarea> </div> <div class="energex-form-actions"> <button type="submit" class="ty-btn ty-btn__primary">Submit Request</button> <a href="mailto:sales@energexbatteries.com" class="ty-btn ty-btn__secondary">Email Procurement Team</a> </div> </form> </div>";} 0 331 blocks/wrappers/mainbox_simple.tpl energex-rfq-block 2 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 2 en RFQ Form
273 127 a:1:{s:4:"text";s:0:"";} 0 310 top-currencies 3 A currencies a:3:{s:8:"template";s:21:"blocks/currencies.tpl";s:6:"format";s:6:"symbol";s:14:"dropdown_limit";s:1:"3";} 0 2 en Currencies
275 128 a:1:{s:4:"menu";s:1:"1";} 0 311 top-quick-links hidden-phone 3 A menu a:2:{s:8:"template";s:26:"blocks/menu/text_links.tpl";s:18:"show_items_in_line";s:1:"Y";} 0 2 en Quick links
298 135 a:1:{s:7:"content";s:354:" <div class="energex-capabilities"> <h2>Procurement Capabilities</h2> <ul> <li>Defense, contractor, and agency support</li> <li>OEM and hard-to-source battery sourcing</li> <li>Bulk, repeat, and project-based procurement</li> <li>NSN / specification reference support</li> <li>Fast response for urgent requests</li> </ul> </div>";} 0 332 blocks/wrappers/mainbox_simple.tpl energex-capabilities-block 3 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 2 en Capabilities Highlights
299 136 a:1:{s:7:"content";s:961:" <div class="energex-category-section"> <h2>Request by Requirement Type</h2> <div class="energex-category-cards"> <a href="/categories/" class="energex-category-card"><strong>Military Lithium Batteries</strong><span>Mission, field, and reserve power applications</span></a> <a href="/categories/" class="energex-category-card"><strong>Communications &amp; Field Equipment</strong><span>Portable systems, radios, tactical electronics</span></a> <a href="/categories/" class="energex-category-card"><strong>Aviation &amp; Aerospace</strong><span>Aircraft, support systems, and specialized platforms</span></a> <a href="/categories/" class="energex-category-card"><strong>Marine &amp; Naval</strong><span>Marine, shipboard, and ruggedized requirements</span></a> <a href="/categories/" class="energex-category-card"><strong>Backup &amp; Tactical Power</strong><span>Reserve power, charging, and deployment support</span></a> </div> </div>";} 0 333 blocks/wrappers/mainbox_simple.tpl energex-category-block 4 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 2 en Defense Categories
300 137 a:1:{s:7:"content";s:609:" <div class="energex-process"> <h2>How Procurement Works</h2> <div class="energex-process-steps"> <div><strong>1. Submit Request</strong><span>Send battery type, quantity, NSN, or equipment reference.</span></div> <div><strong>2. Review &amp; Source</strong><span>We match available OEM, MIL-spec, or compatible options.</span></div> <div><strong>3. Quote &amp; Confirm</strong><span>Pricing, availability, and logistics are returned for approval.</span></div> <div><strong>4. Fulfillment</strong><span>Approved orders move to supply and delivery coordination.</span></div> </div> </div>";} 0 334 blocks/wrappers/mainbox_simple.tpl energex-process-block 5 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 2 en How It Works
301 138 0 335 blocks/wrappers/mainbox_simple.tpl homepage-our-brands energex-oem-brands 6 A our_brands a:9:{s:8:"template";s:21:"blocks/our_brands.tpl";s:24:"not_scroll_automatically";s:1:"Y";s:5:"speed";s:3:"400";s:15:"scroll_per_page";s:1:"Y";s:11:"pause_delay";s:1:"3";s:13:"item_quantity";s:1:"7";s:11:"total_items";s:2:"14";s:15:"thumbnail_width";s:2:"75";s:18:"outside_navigation";s:1:"Y";} 0 2 en Approved & OEM Brands
302 139 a:1:{s:7:"content";s:551:" <div class="energex-compliance"> <h2>Mission-Critical Procurement Focus</h2> <p>Energex Batteries is positioned for request-based battery sourcing where specification matching, OEM reference, quantity planning, and delivery coordination matter more than a standard retail checkout flow.</p> <div class="energex-compliance-points"> <span>Defense &amp; Contractor Support</span> <span>Specification / NSN Reference Intake</span> <span>Bulk &amp; Recurring Procurement</span> <span>Urgent Response Capability</span> </div> </div>";} 0 336 blocks/wrappers/mainbox_simple.tpl energex-compliance-block 7 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 2 en Compliance Section
303 140 a:1:{s:7:"content";s:419:" <div class="energex-final-cta"> <h2>Need Hard-to-Find Batteries?</h2> <p>Send your requirement, platform, part number, or NSN reference and request a procurement response.</p> <div class="energex-final-actions"> <a href="mailto:sales@energexbatteries.com" class="ty-btn ty-btn__primary">Contact Procurement</a> <a href="/categories/" class="ty-btn ty-btn__secondary">Browse Categories</a> </div> </div>";} 0 337 blocks/wrappers/mainbox_simple.tpl energex-final-cta-block 8 A safe_smarty_block a:1:{s:8:"template";s:28:"blocks/safe_smarty_block.tpl";} 0 2 en Final Contact CTA
304 71 0 338 9 A main 0 2 en Main Content