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 = 358 
  AND l.dispatch IN ('index.index') 
ORDER BY 
  l.object_ids desc 
LIMIT 
  1

Query time 0.00066

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "1.35"
    },
    "ordering_operation": {
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "l",
            "access_type": "ref",
            "possible_keys": [
              "idx_dispatch_layout",
              "idx_dispatch_default",
              "idx_layout"
            ],
            "key": "idx_dispatch_layout",
            "used_key_parts": [
              "dispatch",
              "layout_id"
            ],
            "key_length": "199",
            "ref": [
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 1,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.90",
              "eval_cost": "0.10",
              "prefix_cost": "1.00",
              "data_read_per_join": "232"
            },
            "used_columns": [
              "location_id",
              "dispatch",
              "is_default",
              "object_ids",
              "layout_id",
              "position",
              "custom_html"
            ]
          }
        },
        {
          "table": {
            "table_name": "d",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "location_id",
              "lang_code"
            ],
            "key_length": "10",
            "ref": [
              "poscentr_upgrade422.l.location_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 1,
            "filtered": "100.00",
            "index_condition": "<if>(is_not_null_compl(d), (`poscentr_upgrade422`.`d`.`location_id` = `poscentr_upgrade422`.`l`.`location_id`), true)",
            "cost_info": {
              "read_cost": "0.25",
              "eval_cost": "0.10",
              "prefix_cost": "1.35",
              "data_read_per_join": "240"
            },
            "used_columns": [
              "location_id",
              "lang_code",
              "name",
              "title",
              "meta_description",
              "meta_keywords"
            ]
          }
        }
      ]
    }
  }
}

Result

location_id dispatch is_default object_ids layout_id position custom_html lang_code name title meta_description meta_keywords
5434 index.index 0 358 20 <meta name="robots" content="max-snippet:-1, max-image-preview:large, max-video-preview:-1" /> <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "WebSite", "url": "https://www.poscentral.com.au/", "potentialAction": { "@type": "SearchAction", "target": "https://www.poscentral.com.au/?match=all&subcats=Y&pcode_from_q=Y&pshort=Y&pfull=Y&pname=Y&pkeywords=Y&search_performed=Y&hint_q=Search+products&dispatch=products.search&search={search_term_string}", "query-input": "required name=search_term_string" } } </script> <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Organization", "name": "POS Central", "url": "https://www.poscentral.com.au/", "logo": "https://www.poscentral.com.au/images/logos/18/pos_central_logo_oniw-64.jpg", "alternateName": "POS Central Australia", "sameAs": [ "https://www.linkedin.com/company/poscentral/", "https://www.facebook.com/poscentralofficial/", "https://x.com/POS_Central", "https://www.instagram.com/poscentralofficial/", "https://www.youtube.com/@pos_central" ], "contactPoint": [ { "@type": "ContactPoint", "telephone": "+61 489 087 085", "contactType": "sales", "email": "sales@poscentral.com.au", "contactOption": "PhoneCall", "areaServed": "AU", "availableLanguage": "en" } ] } </script> <!-- Open Graph / Facebook --> <meta property="og:locale" content="en_US" /> <meta property="og:type" content="website" /> <meta property="og:title" content="POS [Point of Sale] Systems Hardware & POS Equipment Australia" /> <meta property="og:description" content="Point of Sale Systems Solution: We are one of the leading online POS Hardware & Software suppliers, offering a wide range of POS Equipment, Systems, and Solutions." /> <meta property="og:url" content="https://www.poscentral.com.au/" /> <meta property="og:site_name" content="POS Central" /> <meta property="og:image" content="https://www.poscentral.com.au/images/logos/18/pos_central_logo_oniw-64.jpg" /> <!-- Twitter --> <meta name="twitter:card" content="summary" /> <meta name="twitter:description" content="Point of Sale Systems Solution: We are one of the leading online POS Hardware & Software suppliers, offering a wide range of POS Equipment, Systems, and Solutions." /> <meta name="twitter:title" content="POS [Point of Sale] Systems Hardware & POS Equipment Australia" /> <meta name="twitter:site" content="@POS_Central" /> <meta name="twitter:creator" content="@POS_Central" /> <meta name="twitter:image" content="https://www.poscentral.com.au/images/logos/18/pos_central_logo_oniw-64.jpg" /> <script type="application/ld+json"> { "@context":"http://schema.org", "@type":"ItemList", "itemListElement": [ { "@type":"ListItem", "position":0, "url":"https://www.poscentral.com.au/printers.html" }, { "@type":"ListItem", "position":1, "url":"https://www.poscentral.com.au/barcode-scanners.html" }, { "@type":"ListItem", "position":2, "url":"https://www.poscentral.com.au/cash-drawers.html" }, { "@type":"ListItem", "position":3, "url":"https://www.poscentral.com.au/consumables.html" }, { "@type":"ListItem", "position":4, "url":"https://www.poscentral.com.au/pos-terminals.html" }, { "@type":"ListItem", "position":5, "url":"https://www.poscentral.com.au/printers/pos-receipt-printers.html" }, { "@type":"ListItem", "position":6, "url":"https://www.poscentral.com.au/pos-bundles.html" }, { "@type":"ListItem", "position":7, "url":"https://www.poscentral.com.au/scales.html" }, { "@type":"ListItem", "position":8, "url":"https://www.poscentral.com.au/software.html" }, { "@type":"ListItem", "position":9, "url":"https://www.poscentral.com.au/computers.html" } ] } </script> <style> .choseus .row-fluid .span5 { margin: 22px !important; } </style> en Homepage POS [Point of Sale] Systems Hardware & POS Equipment Australia Point of Sale Systems Solution: We are one of the leading online POS Hardware & Software supplier. We supply a wide range of POS Equipment, POS Systems, POS Solutions, Point of Sale Equipment like cash drawer, receipt printers, label printers, barcode scanners, point of sale hardware, point of sale solutions etc. Point of Sale, POS Hardware, POS Systems, POS Solutions, POS Equipment, POS Software, Point of Sale Solution, Point of Sale Equipment, Point of Sale Systems, Point of Sale Software, Point of Sale Hardware