SELECT 
  cscart_settings_objects.object_id as object_id, 
  name, 
  section_id, 
  section_tab_id, 
  type, 
  position, 
  is_global, 
  cscart_settings_objects.name as description, 
  (
    CASE 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 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 section_id = 359 
  AND (
    FIND_IN_SET(
      'STOREFRONT', cscart_settings_objects.edition_type
    ) 
    OR FIND_IN_SET(
      'ROOT', cscart_settings_objects.edition_type
    ) 
    OR FIND_IN_SET(
      'MVE:STOREFRONT', cscart_settings_objects.edition_type
    ) 
    OR FIND_IN_SET(
      'MVE:ROOT', cscart_settings_objects.edition_type
    )
  ) 
  AND cscart_settings_objects.type <> 'H' 
ORDER BY 
  cscart_settings_objects.position

Query time 0.00030

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "13.96"
    },
    "ordering_operation": {
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_settings_objects",
            "access_type": "ref",
            "possible_keys": [
              "section_id"
            ],
            "key": "section_id",
            "used_key_parts": [
              "section_id"
            ],
            "key_length": "4",
            "ref": [
              "const"
            ],
            "rows_examined_per_scan": 21,
            "rows_produced_per_join": 18,
            "filtered": "90.00",
            "cost_info": {
              "read_cost": "5.25",
              "eval_cost": "1.89",
              "prefix_cost": "7.35",
              "data_read_per_join": "14K"
            },
            "used_columns": [
              "object_id",
              "edition_type",
              "name",
              "section_id",
              "section_tab_id",
              "type",
              "value",
              "position",
              "is_global"
            ],
            "attached_condition": "(((0 <> find_in_set('STOREFRONT',`cscartdevel`.`cscart_settings_objects`.`edition_type`)) or (0 <> find_in_set('ROOT',`cscartdevel`.`cscart_settings_objects`.`edition_type`)) or (0 <> find_in_set('MVE:STOREFRONT',`cscartdevel`.`cscart_settings_objects`.`edition_type`)) or (0 <> find_in_set('MVE:ROOT',`cscartdevel`.`cscart_settings_objects`.`edition_type`))) and (`cscartdevel`.`cscart_settings_objects`.`type` <> 'H'))"
          }
        },
        {
          "table": {
            "table_name": "storefront_values",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY",
              "storefront_id",
              "company_id"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "company_id",
              "storefront_id"
            ],
            "key_length": "11",
            "ref": [
              "cscartdevel.cscart_settings_objects.object_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 18,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "4.72",
              "eval_cost": "1.89",
              "prefix_cost": "13.96",
              "data_read_per_join": "453"
            },
            "used_columns": [
              "object_id",
              "company_id",
              "storefront_id",
              "value"
            ]
          }
        }
      ]
    }
  }
}

Result

object_id name section_id section_tab_id type position is_global description value
6937 ss_paczkomaty_enable_logs 359 363 C 0 N ss_paczkomaty_enable_logs Y
6916 ss_paczkomaty_items_per_page 359 360 I 0 N ss_paczkomaty_items_per_page 500
6936 ss_paczkomaty_stats 359 362 O 0 N ss_paczkomaty_stats
6920 ss_paczkomaty_enable_vendor_sender 359 361 C 0 N ss_paczkomaty_enable_vendor_sender N
6917 ss_paczkomaty_dev_mode 359 360 C 10 N ss_paczkomaty_dev_mode N
6921 ss_shipx_sender_point_name 359 361 I 10 N ss_shipx_sender_point_name
6918 ss_paczkomaty_phone_id 359 360 I 20 N ss_paczkomaty_phone_id
6922 ss_shipx_sender_name 359 361 I 20 N ss_shipx_sender_name
6923 ss_shipx_sender_company_name 359 361 I 30 N ss_shipx_sender_company_name
6919 ss_paczkomaty_weight_converter 359 360 I 30 N ss_paczkomaty_weight_converter 1000
6924 ss_shipx_sender_first_name 359 361 I 40 N ss_shipx_sender_first_name
6925 ss_shipx_sender_last_name 359 361 I 50 N ss_shipx_sender_last_name
6926 ss_shipx_sender_phone 359 361 I 60 N ss_shipx_sender_phone
6927 ss_shipx_sender_email 359 361 I 70 N ss_shipx_sender_email
6928 ss_shipx_sender_street 359 361 I 80 N ss_shipx_sender_street
6929 ss_shipx_sender_building_number 359 361 I 90 N ss_shipx_sender_building_number
6930 ss_shipx_sender_city 359 361 I 100 N ss_shipx_sender_city
6931 ss_shipx_sender_post_code 359 361 I 110 N ss_shipx_sender_post_code
6932 ss_shipx_sender_country_code 359 361 I 120 N ss_shipx_sender_country_code
6933 ss_shipx_sender_office_hours 359 361 I 130 N ss_shipx_sender_office_hours
6934 ss_shipx_sender_comment 359 361 I 140 N ss_shipx_sender_comment
6935 ss_shipx_point 359 361 I 150 N ss_shipx_point