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 = 'ru' 
  LEFT JOIN cscart_tilda_locations ON l.location_id = cscart_tilda_locations.inner_location_id 
WHERE 
  l.layout_id = 6 
  AND l.dispatch IN ('categories.view') 
  AND (
    FIND_IN_SET(1066, l.object_ids) 
    OR l.object_ids = ''
  ) 
ORDER BY 
  l.object_ids desc 
LIMIT 
  1

Query time 0.00077

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "cscart_tilda_locations",
      "access_type": "system",
      "possible_keys": ["PRIMARY"],
      "rows": 0,
      "filtered": 0,
      "const_row_not_found": true
    },
    "read_sorted_file": {
      "filesort": {
        "sort_key": "l.object_ids desc",
        "table": {
          "table_name": "l",
          "access_type": "ALL",
          "rows": 401,
          "filtered": 100,
          "attached_condition": "l.layout_id = 6 and l.dispatch = 'categories.view' and (find_in_set(1066,l.object_ids) or l.object_ids = '')"
        }
      }
    },
    "table": {
      "table_name": "d",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "10",
      "used_key_parts": ["location_id", "lang_code"],
      "ref": ["admin_test.l.location_id", "const"],
      "rows": 1,
      "filtered": 100,
      "attached_condition": "trigcond(d.location_id = l.location_id and d.lang_code = 'ru')"
    }
  }
}

Result

location_id dispatch is_default layout_id object_ids custom_html position lang_code name title meta_description meta_keywords page_id inner_location_id project_id published page_title description images js css errors status is_only_content
109 categories.view 0 6 40 ru Категории