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 = 1576 
  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.00943

JSON explain

{
  "query_block": {
    "select_id": 1,
    "read_sorted_file": {
      "filesort": {
        "sort_key": "cscart_settings_objects.position",
        "table": {
          "table_name": "cscart_settings_objects",
          "access_type": "ref",
          "possible_keys": ["section_id"],
          "key": "section_id",
          "key_length": "4",
          "used_key_parts": ["section_id"],
          "ref": ["const"],
          "rows": 39,
          "filtered": 100,
          "attached_condition": "cscart_settings_objects.section_id <=> 1576 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'"
        }
      }
    },
    "table": {
      "table_name": "storefront_values",
      "access_type": "eq_ref",
      "possible_keys": ["PRIMARY", "storefront_id", "company_id"],
      "key": "PRIMARY",
      "key_length": "11",
      "used_key_parts": ["object_id", "company_id", "storefront_id"],
      "ref": ["devmotorsbay.cscart_settings_objects.object_id", "const", "const"],
      "rows": 1,
      "filtered": 100
    }
  }
}

Result

object_id name section_id section_tab_id type position is_global description value
11771 feature_brand_id 1576 1581 I 0 N feature_brand_id 2
11763 ai_generate_fitment 1576 1580 C 0 N ai_generate_fitment Y
11761 openai_api_key 1576 1579 I 0 N openai_api_key
11759 gemini_api_key 1576 1578 I 0 N gemini_api_key AIzaSyCYj7KdCcslA6ykUSNP5Asu7EM0bEe3ORU
11755 provider 1576 1577 S 0 N provider gemini
11772 feature_part_number_id 1576 1581 I 10 N feature_part_number_id 3
11764 ai_generate_country_of_origin 1576 1580 C 10 N ai_generate_country_of_origin Y
11762 openai_model 1576 1579 I 10 N openai_model gpt-4o-mini
11760 gemini_model 1576 1578 I 10 N gemini_model gemini-2.5-flash
11756 python_path 1576 1577 I 10 N python_path python3
11773 allow_create_part_number_variant 1576 1581 C 20 N allow_create_part_number_variant Y
11765 ai_generate_tags 1576 1580 C 20 N ai_generate_tags Y
11757 product_status 1576 1577 S 20 N product_status D
11774 feature_oem_authentic_id 1576 1581 I 30 N feature_oem_authentic_id
11766 ai_variants_max_count 1576 1580 I 30 N ai_variants_max_count 4
11758 default_category_id 1576 1577 I 30 N default_category_id 0
11775 feature_fitment_id 1576 1581 I 40 N feature_fitment_id 28
11767 ai_variants_for_brand 1576 1580 C 40 N ai_variants_for_brand Y
11776 feature_condition_id 1576 1581 I 50 N feature_condition_id 81
11768 ai_variants_for_oem_authentic 1576 1580 C 50 N ai_variants_for_oem_authentic Y
11777 feature_country_of_origin_id 1576 1581 I 60 N feature_country_of_origin_id 27
11769 ai_variants_for_condition 1576 1580 C 60 N ai_variants_for_condition Y
11770 ai_variants_for_genuine 1576 1580 C 70 N ai_variants_for_genuine Y
11778 feature_manufacturer_id 1576 1581 I 70 N feature_manufacturer_id 26
11779 feature_genuine_id 1576 1581 I 80 N feature_genuine_id 73
11780 feature_parts_description_id 1576 1581 I 90 N feature_parts_description_id 4