SELECT 
  cscart_settings_objects.object_id as object_id, 
  cscart_settings_objects.type as object_type, 
  cscart_settings_objects.name as description, 
  (
    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 
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 cscart_settings_objects.object_id = 6146 
ORDER BY 
  cscart_settings_objects.position

Query time 0.00106

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "1.00"
    },
    "ordering_operation": {
      "using_filesort": false,
      "nested_loop": [
        {
          "table": {
            "table_name": "company_values",
            "access_type": "system",
            "possible_keys": [
              "PRIMARY",
              "storefront_id",
              "company_id"
            ],
            "rows_examined_per_scan": 0,
            "rows_produced_per_join": 1,
            "filtered": "0.00",
            "const_row_not_found": true,
            "cost_info": {
              "read_cost": "0.00",
              "eval_cost": "0.20",
              "prefix_cost": "0.00",
              "data_read_per_join": "24"
            },
            "used_columns": [
              "object_id",
              "company_id",
              "value",
              "storefront_id"
            ]
          }
        },
        {
          "table": {
            "table_name": "storefront_values",
            "access_type": "system",
            "possible_keys": [
              "PRIMARY",
              "storefront_id",
              "company_id"
            ],
            "rows_examined_per_scan": 0,
            "rows_produced_per_join": 1,
            "filtered": "0.00",
            "const_row_not_found": true,
            "cost_info": {
              "read_cost": "0.00",
              "eval_cost": "0.20",
              "prefix_cost": "0.00",
              "data_read_per_join": "24"
            },
            "used_columns": [
              "object_id",
              "company_id",
              "value",
              "storefront_id"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_settings_objects",
            "access_type": "const",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id"
            ],
            "key_length": "3",
            "ref": [
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 1,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.00",
              "eval_cost": "0.20",
              "prefix_cost": "0.00",
              "data_read_per_join": "808"
            },
            "used_columns": [
              "object_id",
              "edition_type",
              "name",
              "type",
              "value",
              "position"
            ]
          }
        }
      ]
    }
  }
}

Result

object_id object_type description value
6146 H watermark a:7:{s:4:"type";s:1:"T";s:4:"text";s:15:"eshopuganda.com";s:4:"font";s:5:"arial";s:10:"font_color";s:4:"gray";s:14:"font_size_icon";s:2:"10";s:18:"font_size_detailed";s:2:"10";s:8:"position";s:13:"center_center";}