SELECT 
  cscart_settings_objects.object_id as object_id, 
  cscart_settings_objects.name as name, 
  section_id, 
  section_tab_id, 
  type, 
  edition_type, 
  position, 
  is_global, 
  handler, 
  parent_id, 
  cscart_settings_descriptions.value as description, 
  cscart_settings_descriptions.tooltip as tooltip, 
  cscart_settings_descriptions.object_type as object_type, 
  (
    CASE WHEN company_values.object_id IS NOT NULL THEN company_values.value WHEN storefront_values.object_id IS NOT NULL THEN storefront_values.value ELSE cscart_settings_objects.value END
  ) AS value 
FROM 
  cscart_settings_objects 
  LEFT JOIN cscart_settings_vendor_values AS company_values ON company_values.object_id = cscart_settings_objects.object_id 
  AND company_values.company_id = 1 
  AND company_values.storefront_id = 1 
  LEFT JOIN cscart_settings_vendor_values AS storefront_values ON storefront_values.object_id = cscart_settings_objects.object_id 
  AND storefront_values.storefront_id = 1 
  AND storefront_values.company_id = 0 
  LEFT JOIN cscart_settings_descriptions ON cscart_settings_descriptions.object_id = cscart_settings_objects.object_id 
  AND cscart_settings_descriptions.object_type = 'O' 
  AND lang_code = 'en' 
WHERE 
  1 
  AND (
    FIND_IN_SET(
      'STOREFRONT', cscart_settings_objects.edition_type
    ) 
    OR FIND_IN_SET(
      'VENDOR', cscart_settings_objects.edition_type
    ) 
    OR FIND_IN_SET(
      'ROOT', cscart_settings_objects.edition_type
    ) 
    OR FIND_IN_SET(
      'ULT:STOREFRONT', cscart_settings_objects.edition_type
    ) 
    OR FIND_IN_SET(
      'ULT:VENDOR', cscart_settings_objects.edition_type
    ) 
    OR FIND_IN_SET(
      'ULT:ROOT', cscart_settings_objects.edition_type
    )
  ) 
  AND name = 'secure_admin' 
ORDER BY 
  cscart_settings_objects.position

Query time 0.00069

JSON explain

{
  "query_block": {
    "select_id": 1,
    "read_sorted_file": {
      "filesort": {
        "table": {
          "table_name": "company_values",
          "access_type": "system",
          "possible_keys": ["PRIMARY", "storefront_id", "company_id"],
          "rows": 0,
          "filtered": 0,
          "const_row_not_found": true
        }
      }
    },
    "table": {
      "table_name": "storefront_values",
      "access_type": "system",
      "possible_keys": ["PRIMARY", "storefront_id", "company_id"],
      "rows": 0,
      "filtered": 0,
      "const_row_not_found": true
    },
    "table": {
      "table_name": "cscart_settings_objects",
      "access_type": "ref",
      "possible_keys": ["name"],
      "key": "name",
      "key_length": "386",
      "used_key_parts": ["name"],
      "ref": ["const"],
      "rows": 1,
      "filtered": 100,
      "index_condition": "(cscart_settings_objects.`name` = 'secure_admin')",
      "attached_condition": "((cscart_settings_objects.`name` <=> 'secure_admin') and (find_in_set('STOREFRONT',cscart_settings_objects.edition_type) or find_in_set('VENDOR',cscart_settings_objects.edition_type) or find_in_set('ROOT',cscart_settings_objects.edition_type) or find_in_set('ULT:STOREFRONT',cscart_settings_objects.edition_type) or find_in_set('ULT:VENDOR',cscart_settings_objects.edition_type) or find_in_set('ULT:ROOT',cscart_settings_objects.edition_type)))"
    },
    "table": {
      "table_name": "cscart_settings_descriptions",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY"],
      "key": "PRIMARY",
      "key_length": "14",
      "used_key_parts": ["object_id", "object_type", "lang_code"],
      "ref": [
        "egkcysbp_cscartn.cscart_settings_objects.object_id",
        "const",
        "const"
      ],
      "rows": 1,
      "filtered": 100,
      "attached_condition": "trigcond(((cscart_settings_descriptions.object_type = 'O') and (cscart_settings_descriptions.lang_code = 'en')))"
    }
  }
}

Result

object_id name section_id section_tab_id type edition_type position is_global handler parent_id description tooltip object_type value
56 secure_admin 15 0 C ROOT 2 Y 0 Enable secure connection in the administration panel SSL certificate must be installed on your server. O N