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 = 6 
  AND l.dispatch IN ('categories.view') 
  AND (
    FIND_IN_SET(346, l.object_ids) 
    OR l.object_ids = ''
  ) 
ORDER BY 
  l.object_ids desc 
LIMIT 
  1

Query time 0.00171

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "25.50"
    },
    "ordering_operation": {
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "l",
            "access_type": "ALL",
            "rows_examined_per_scan": 213,
            "rows_produced_per_join": 2,
            "filtered": "1.00",
            "cost_info": {
              "read_cost": "24.54",
              "eval_cost": "0.21",
              "prefix_cost": "24.75",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "location_id",
              "dispatch",
              "is_default",
              "layout_id",
              "object_ids",
              "custom_html",
              "position",
              "user_class"
            ],
            "attached_condition": "((`CS_Cart_Dev`.`l`.`layout_id` = 6) and (`CS_Cart_Dev`.`l`.`dispatch` = 'categories.view') and ((0 <> find_in_set(346,`CS_Cart_Dev`.`l`.`object_ids`)) or (`CS_Cart_Dev`.`l`.`object_ids` = '')))"
          }
        },
        {
          "table": {
            "table_name": "d",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "location_id",
              "lang_code"
            ],
            "key_length": "10",
            "ref": [
              "CS_Cart_Dev.l.location_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 2,
            "filtered": "100.00",
            "index_condition": "<if>(is_not_null_compl(d), (`CS_Cart_Dev`.`d`.`location_id` = `CS_Cart_Dev`.`l`.`location_id`), true)",
            "cost_info": {
              "read_cost": "0.53",
              "eval_cost": "0.21",
              "prefix_cost": "25.50",
              "data_read_per_join": "511"
            },
            "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 user_class lang_code name title meta_description meta_keywords
99 categories.view 0 6 <style> button.cm-ab-p-calculate-pov {display:none} .ty-price-per-unit bdi {display:inline !important} .ty-product-bundles-product-bundles--padding {margin-top:30px;padding-bottom:0 !important} .ab__product_recommendations .ab__pr-header {color:#119a16 !important} .ut2-pb .ty-popup-tabs__icon {color:#119a16 !important} .ty-fileuploader {color:#1e1e1e;background:#ffe000;border-radius:8px;padding:0 15px !important;display:flex;align-items:center;justify-content:center;width:max-content;max-width:100%;height:30px} [class*="title"] mark {color: #30cab3 !important} .ut2-blog__recent-posts-scroller--img .ty-pict {max-height: 300px} .ty-dropdown-box.ty-text-links-btn div {color:inherit !important} .ty-blog-grid .ty-mainbox-container > .ty-mainbox-title {font-size: 28px !important} .ty-companies__info a:not(.ty-company-title) {text-decoration:none !important} .oneb_contents_center {display:grid !important; justify-content:center !important} .oneb_contents_center span {text-align:center} .store-lnk {font-size:20px !important;} </style> 40 en Categories