SELECT 
  * 
FROM 
  cscart_bm_locations as l 
  LEFT JOIN cscart_bm_locations_descriptions as d ON d.location_id = l.location_id 
  AND d.lang_code = 'en' 
WHERE 
  l.layout_id = 1928 
  AND l.dispatch IN ('index.index') 
ORDER BY 
  l.object_ids desc 
LIMIT 
  1

Query time 0.03994

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "9384.88"
    },
    "ordering_operation": {
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "l",
            "access_type": "ALL",
            "rows_examined_per_scan": 43207,
            "rows_produced_per_join": 432,
            "filtered": "1.00",
            "cost_info": {
              "read_cost": "8779.99",
              "eval_cost": "86.41",
              "prefix_cost": "8866.40",
              "data_read_per_join": "97K"
            },
            "used_columns": [
              "location_id",
              "dispatch",
              "is_default",
              "layout_id",
              "object_ids",
              "custom_html",
              "position"
            ],
            "attached_condition": "((`webmarco`.`l`.`layout_id` = 1928) and (`webmarco`.`l`.`dispatch` = 'index.index'))"
          }
        },
        {
          "table": {
            "table_name": "d",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "location_id",
              "lang_code"
            ],
            "key_length": "10",
            "ref": [
              "webmarco.l.location_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 432,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "432.07",
              "eval_cost": "86.41",
              "prefix_cost": "9384.88",
              "data_read_per_join": "101K"
            },
            "used_columns": [
              "location_id",
              "lang_code",
              "name",
              "title",
              "meta_description",
              "meta_keywords"
            ],
            "attached_condition": "<if>(is_not_null_compl(d), (`webmarco`.`d`.`location_id` = `webmarco`.`l`.`location_id`), true)"
          }
        }
      ]
    }
  }
}

Result

location_id dispatch is_default layout_id object_ids custom_html position lang_code name title meta_description meta_keywords
56075 index.index 0 1928 <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-PD7Q7MKH');</script> <!-- End Google Tag Manager --> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-E9MCQFBFML"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-E9MCQFBFML'); </script> <meta property="og:type" content="business.business"> <meta property="og:title" content="WebMarco - Online Shopping"> <meta property="og:url" content="https://webmarco.com/"> <meta property="og:image" content="https://lh3.ggpht.com/p/AF1QipPVhIX9Gg0ZuLmymGpcY1WqxsFGRjGk6ftJ4B9N=s512"> <meta property="og:description" content="WebMarco - Find EVERYTHING you need, all in one place."> <meta property="business:contact_data:street_address" content="Street Pontida 71"> <meta property="business:contact_data:locality" content="Rome"> <meta property="business:contact_data:region" content="Alessandria"> <meta property="business:contact_data:postal_code" content="15121"> <meta property="business:contact_data:country_name" content="Italy"> <meta name="robots" content="index, follow"> <script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "Organization", "name": "WebMarco", "alternateName": "WebMarco", "logo": "https://webmarco.com/images/logos/421/new-logo--marco-orange-min_nx8z-2o.png", "url": "https://webmarco.com/", "contactPoint": { "@type": "ContactPoint", "telephone": "+390256568724", }, "address": { "@type": "PostalAddress", "streetAddress": "Street Pontida 71", "addressLocality": "Rome", "addressRegion": "Alessandria", "postalCode": "15121", "addressCountry": "Italy" }, "sameAs": ["https://www.facebook.com/IlTuoBusinessPartner/", "https://www.instagram.com/webmarco_/", "https://www.youtube.com/channel/UC8C400XdYN5xte5Jwz73uvA"] } </script> <script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "BreadcrumbList", "itemListElement": [ { "@type": "ListItem", "position": 1, "name": "WebMarco - Online Shopping", "item": "https://webmarco.com/" } ] } </script> <script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "WebSite", "url": "https://webmarco.com/", "potentialAction": { "@type": "SearchAction", "target": "{search_term_string}", "query-input": "required name=search_term_string" } } </script> <style> .margin { margin-top: 17px; margin-bottom: 17px } .bg { background-color: white !important; } .vendorname { font-size: 15px; text-align: center; display: block; overflow: hidden; } .box { -webkit-box-shadow: 2px 2px 4px 1px #a6a2b1; box-shadow: 2px 2px 4px 1px #a6a2b1; background-color: #ffffff; margin-bottom: 30px; border: 2px solid #a5a5a5; border-radius: 4px; text-align: center; } .box:hover { -webkit-box-shadow: 2px 3px 4px 1px #a6a2b1; box-shadow: 2px 3px 4px 1px #a6a2b1; } .content-box { margin: 0px 15px 0px 15px; padding: 30px 0px 30px 0px; overflow: hidden; } .box1 { -webkit-box-shadow: 2px 2px 4px 1px #a6a2b1; box-shadow: 2px 2px 4px 1px #a6a2b1; background-color: #ffffff; margin-bottom: 30px; border: 2px solid #a5a5a5; border-radius: 4px; } .box1:hover { -webkit-box-shadow: 2px 3px 4px 1px #a6a2b1; box-shadow: 2px 3px 4px 1px #a6a2b1; } .box3 { -webkit-box-shadow: 2px 2px 4px 1px #a6a2b1; box-shadow: 2px 2px 4px 1px #a6a2b1; background-color: #ffffff; margin-bottom: 30px; border: 2px solid #a5a5a5; border-radius: 4px; text-align: center; padding: 17px 15px 10px 15px; } .box3:hover { -webkit-box-shadow: 2px 3px 4px 1px #a6a2b1; box-shadow: 2px 3px 4px 1px #a6a2b1; } .joinus { color: #4D3AA2; position: relative; top: 1px; font-size: 17px; font-weight: bold; } .joinus:hover { color: #fe7200; } .grad1 { background: rgb(248, 84, 116); background: linear-gradient(225deg, rgba(248, 84, 116, 0.85) 0%, rgba(174, 56, 139, 1) 17%, rgba(131, 39, 153, 1) 38%, rgba(28, 0, 186, 0.85) 100%); position: relative; top: -20px; border-radius: 3px 3px 0px 0px; } .side-space-pc { margin-left: 15px; margin-right: 15px; } @media only screen and (max-width: 1080px) { .side-space { margin-left: 7px; margin-right: 7px; } } .tall { height: 400px } .marco-order { background: #fff url(https://webmarco.com/images/All%20vendors/DEMO/grdbg.png?_t=1647253830) center center/cover no-repeat; height: 64px; } .img-border img { border-radius: 4px 4px 0px 0px; } .banner-top { margin-top: 13px } .height495 { height: 495px; } .et-featured-vendors .et-featured-vendor { color: transparent; } .et-featured-vendors .et-vendor-name { font-size: 16px; font-weight: normal; } .et-featured-vendors .et-featured-vendor { padding: 0px; margin: 5px 10px; } #banner_41898_0_ { background-color: #f5f5f5; } .negative-top { margin-top: -30px; } .center { text-align: center; } .top { margin-top: 15px; } .white { background: white; } .top32 { margin-top: 32px; } .ty-company-image { width: 82%; background: #a8abff; } .color-bg { background-color: #d9d9d9; } #banner_42699_0_ { border-radius: 7px; } .ec_vendor_filters_block .ec_filter_vendor_btn { display: none; } .et-scroller .et-scroller-item { border: 2px solid #a5a5a5; } .border1{ border: 2px solid #a5a5a5; margin-bottom: 30px; text-align: center; } .border-bottom{ border-bottom: 2px solid #a5a5a5; } @media (min-width: 1024px){ .up { position: relative; top: -195px; margin-bottom: -165px; } } </style> 20 en Homepage WebMarco - Online Shopping WebMarco - Find EVERYTHING you need, all in one place. webmarco, website, ecommerce, services, buy, sell, offer, business, clothing, electronics, furniture, beauty, toys, construction, car rental, finance, cleaning, personal website, marco order, qr code, kitchen, make up, shoes, books,