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

Query time 0.00156

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "56.33"
    },
    "ordering_operation": {
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "l",
            "access_type": "ALL",
            "rows_examined_per_scan": 514,
            "rows_produced_per_join": 5,
            "filtered": "1.00",
            "cost_info": {
              "read_cost": "54.01",
              "eval_cost": "0.51",
              "prefix_cost": "54.53",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "location_id",
              "dispatch",
              "is_default",
              "layout_id",
              "object_ids",
              "custom_html",
              "position"
            ],
            "attached_condition": "((`cscart_db`.`l`.`layout_id` = 10) and (`cscart_db`.`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": [
              "cscart_db.l.location_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 5,
            "filtered": "100.00",
            "index_condition": "<if>(is_not_null_compl(d), (`cscart_db`.`d`.`location_id` = `cscart_db`.`l`.`location_id`), true)",
            "cost_info": {
              "read_cost": "1.29",
              "eval_cost": "0.51",
              "prefix_cost": "56.33",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "location_id",
              "lang_code",
              "name",
              "title",
              "meta_description",
              "meta_keywords"
            ]
          }
        }
      ]
    }
  }
}

Result

location_id dispatch is_default layout_id object_ids custom_html position lang_code name title meta_description meta_keywords
337 index.index 0 10 <meta property="og:image" property="og:image" content="https://kindlife.in/images/ui_icon/kindlifeLogo.jpg" /> <meta name="google-site-verification" content="06DqIwEE5cBv2UIkQ8JZQyG8lVZXl-v3VTG6AdXewLs" /> <link rel="preload" as="style" href="https://kindlife.in/design/themes/new_2bk/css/addons/my_changes/common.css?a=3" onload="this.onload=null;this.rel='stylesheet'"> <noscript> <link rel="stylesheet" href="https://kindlife.in/design/themes/new_2bk/css/addons/my_changes/common.css?a=3"> </noscript> <link rel="preconnect" href="//cdn.kindlife.in"> 20 en Homepage kindlife | Korean Skincare, Beauty, Health Kindlife.in brings the latest K-beauty, J-beauty, and global trends to Gen Z in India. Join a vibrant community, explore cult-favorite skincare, and get AI-powered recommendations. Find your kind. Korean beauty products online india, japanese beauty products india, k-beauty india, skincare online india, buy k-pop merch india, organic makeup india, clean beauty products online, wellness products india, supplements online india, natural and organic products, gen z beauty trends, conscious consumers india, sustainable wellness india, ai powered skincare recommendations