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 = 127 
  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.00087

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "6.84"
    },
    "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": 3,
            "rows_produced_per_join": 2,
            "filtered": "90.00",
            "index_condition": "(`webmarco`.`cscart_settings_objects`.`section_id` <=> 127)",
            "cost_info": {
              "read_cost": "3.00",
              "eval_cost": "0.54",
              "prefix_cost": "3.60",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "object_id",
              "edition_type",
              "name",
              "section_id",
              "section_tab_id",
              "type",
              "value",
              "position",
              "is_global"
            ],
            "attached_condition": "((find_in_set('STOREFRONT',`webmarco`.`cscart_settings_objects`.`edition_type`) or find_in_set('ROOT',`webmarco`.`cscart_settings_objects`.`edition_type`) or find_in_set('MVE:STOREFRONT',`webmarco`.`cscart_settings_objects`.`edition_type`) or find_in_set('MVE:ROOT',`webmarco`.`cscart_settings_objects`.`edition_type`)) and (`webmarco`.`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": [
              "webmarco.cscart_settings_objects.object_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 2,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "2.70",
              "eval_cost": "0.54",
              "prefix_cost": "6.84",
              "data_read_per_join": "64"
            },
            "used_columns": [
              "object_id",
              "company_id",
              "value",
              "storefront_id"
            ]
          }
        }
      ]
    }
  }
}

Result

object_id name section_id section_tab_id type position is_global description value
5970 config 127 128 E 0 N config config.tpl
8262 color_preset 127 128 D 10 N color_preset C
5971 config_data 127 128 D 10 N config_data {"app_settings":{"utility":{"shopName":"WebMarco","pushNotifications":"1","fcmApiKey":""},"build":{"appName":"WebMarco","appShortDescription":"Il Tuo Business Partner","appFullDescription":"WebMarco \u00e8 un partner importante della tua attivit\u00e0 che ti offre diversi soluzioni online. Siamo specializzati nel capire le attivit\u00e0 dei nostri clienti studiando per loro i metodi pi\u00f9 efficaci per raggiungere i loro obiettivi. Non siamo una semplice agenzia di marketing digitale, ma offriamo molto di pi\u00f9 per il tuo business.\r\n\r\nLa nostra passione per aiutare le piccole e medie imprese ci ha fatto diventare una societ\u00e0 di marketing strategica capace di offrire un servizio completo per sviluppare soluzioni online in tutti i settori di business.\r\n\r\n","supportEmail":"support@webmarco.com","privacyPolicyUrl":"https:\/\/webmarco.com\/termini-e-condizioni-per-i-venditori\/"},"images":{"crop_when_resize":"Y"},"apple_pay":{"applePay":"off","applePayMerchantIdentifier":"","applePayMerchantName":""},"google_pay":{"googlePay":"off","googlePayApiKey":""}},"app_appearance":{"colors":{"categories":{"categoriesBackgroundColor":{"value":"#FAFAFA","type":"color","name":"Background","description":"The background color of the block with categories."},"categoriesHeaderColor":{"value":"#000","type":"color","name":"Block title color","description":"Affects the titles of all blocks, not just the one with categories."},"categoryBlockBackgroundColor":{"value":"#FFF","type":"color","name":"Card background","description":"The background color of category cards."},"categoryBlockTextColor":{"value":"#000","type":"color","name":"Card text","description":"The color of text in a category card."},"categoryBorderRadius":{"value":"6","type":"number","name":"Card corners radius","description":"Determines how rounded the corners of a category card will be."}},"navbar":{"statusBarColor":{"value":"#c1c1c1","type":"color","name":"Status bar color","description":"The color of the system status bar; affects Android devices only."},"navBarBackgroundColor":{"value":"#FAFAFA","type":"color","name":"Background","description":"The background color of the navigation bar."},"navBarButtonColor":{"value":"#989898","type":"color","name":"Icon color","description":"The color of icons in the navigation bar."},"navBarTextColor":{"value":"#242424","type":"color","name":"Text color","description":"The color of text in the navigation bar."},"screenBackgroundColor":{"value":"#fff","type":"color","name":"Screen background","description":"The common background color of all screens in the app."},"navBarTitleFontSize":{"value":"16","type":"number","name":"Title text size","description":"The size of the title text."}},"product_screen":{"buttonBackgroundColor":{"value":"#FF6008","type":"color","name":"Primary CTA button","description":"The background color of the primary CTA button (such as 'Add to Cart')."},"buttonWithBackgroundTextColor":{"value":"#fff","type":"color","name":"CTA text color","description":"The text color of both primary and secondary CTA buttons."},"buttonWithoutBackgroundTextColor":{"value":"#FF6008","type":"color","name":"Secondary action text","description":"The color of sorting and filter links, etc."},"ratingStarsColor":{"value":"#EAA944","type":"color","name":"Rating stars color","description":"The color of the rating icons (stars)."},"discussionMessageColor":{"value":"#808080","type":"color","name":"Text color","description":"Affects product descriptions, discussions, and other texts at the product screen."},"darkColor":{"value":"#242424","type":"color","name":"Product name","description":"Determines color of product name and product price"},"grayColor":{"value":"#FAFAFA","type":"color","name":"Tabs background","description":""},"mediumGrayColor":{"value":"#B8B8B8","type":"color","name":"Options border color","description":""},"categoryEmptyImage":{"value":"#989898","type":"color","name":"\"Add image\" button","description":"The color of the \"plus\" button for adding a product image."}},"other":{"successColor":{"value":"#7DCFB6","type":"color","name":"Success color","description":"The background color of a pop-up notification about a successful action."},"infoColor":{"value":"#FCEADE","type":"color","name":"Info color","description":"The background color of a pop-up notification with information."},"dangerColor":{"value":"#D9534F","type":"color","name":"Error color","description":"The background color of a pop-up notification about an error."},"borderRadius":{"value":"8","type":"number","name":"Border radius","description":"Determines how rounded the corners of product borders will be."},"productDiscountColor":{"value":"#EAA944","type":"color","name":"Discount badge","description":"The background color of a badge with the amount of product discount."},"productBorderColor":{"value":"#FFF","type":"color","name":"Product border","description":"The color of a thin border around products on product lists."},"pushNotificationsColor":{"value":"#26323e","type":"color","name":"Push notifications color","description":"Color of push notifications."},"dotsSwiperColor":{"value":"#0085FE","type":"color","name":"Image slider bullets","description":"The color of bullets in image galleries."}},"bottom_tabs":{"bottomTabsBackgroundColor":{"value":"#fff","type":"color","name":"Background color","description":"Background color."},"bottomTabsTextColor":{"value":"#888888","type":"color","name":"Text color","description":"Text color."},"bottomTabsSelectedTextColor":{"value":"#000","type":"color","name":"Selected text color","description":"Selected text color."},"bottomTabsIconColor":{"value":"#888888","type":"color","name":"Icon color","description":"Icon color."},"bottomTabsSelectedIconColor":{"value":"#000","type":"color","name":"Selected icon color","description":"Selected icon color."},"bottomTabsPrimaryBadgeColor":{"value":"#FD542A","type":"color","name":"Primary badge color","description":"Color of the icon with the number of products."}},"profile":{"menuItemsBorderColor":{"value":"#D6D6D6","type":"color","name":"Border color","description":"Border color for menu items."},"menuIconsColor":{"value":"#D3D3D3","type":"color","name":"Menu icons color","description":"Menu icons color."},"menuTextColor":{"value":"#424040","type":"color","name":"Menu text color","description":"Menu text color."}}}}}