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

Query time 0.00221

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "201.30"
    },
    "ordering_operation": {
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "l",
            "access_type": "ALL",
            "rows_examined_per_scan": 1874,
            "rows_produced_per_join": 18,
            "filtered": "1.00",
            "cost_info": {
              "read_cost": "192.87",
              "eval_cost": "1.87",
              "prefix_cost": "194.75",
              "data_read_per_join": "4K"
            },
            "used_columns": [
              "location_id",
              "dispatch",
              "is_default",
              "layout_id",
              "object_ids",
              "custom_html",
              "position"
            ],
            "attached_condition": "((`s2cart`.`l`.`layout_id` = 8) and (`s2cart`.`l`.`dispatch` = 'categories.view') and ((0 <> find_in_set(1256,`s2cart`.`l`.`object_ids`)) or (`s2cart`.`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": [
              "s2cart.l.location_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 18,
            "filtered": "100.00",
            "index_condition": "<if>(is_not_null_compl(d), (`s2cart`.`d`.`location_id` = `s2cart`.`l`.`location_id`), true)",
            "cost_info": {
              "read_cost": "4.69",
              "eval_cost": "1.87",
              "prefix_cost": "201.31",
              "data_read_per_join": "4K"
            },
            "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
166 categories.view 0 8 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <!-- jQuery library --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <!-- Latest compiled JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script> <meta name="google-site-verification" content="QKSifwOv-V-dV-4oaUxxPd-cAq4_2pVQ4dBV6s_Zhdo" /> 40 en Categories