SELECT 
  ushop_settings_objects.object_id as object_id, 
  ushop_settings_objects.type as object_type, 
  ushop_settings_objects.name as description, 
  (
    CASE WHEN storefront_values.object_id IS NOT NULL THEN storefront_values.value ELSE ushop_settings_objects.value END
  ) AS value 
FROM 
  ushop_settings_objects 
  LEFT JOIN ushop_settings_vendor_values AS storefront_values ON storefront_values.object_id = ushop_settings_objects.object_id 
  AND storefront_values.storefront_id = 1 
  AND storefront_values.company_id = 0 
WHERE 
  1 
  AND (
    FIND_IN_SET(
      'STOREFRONT', ushop_settings_objects.edition_type
    ) 
    OR FIND_IN_SET(
      'ROOT', ushop_settings_objects.edition_type
    ) 
    OR FIND_IN_SET(
      'MVE:STOREFRONT', ushop_settings_objects.edition_type
    ) 
    OR FIND_IN_SET(
      'MVE:ROOT', ushop_settings_objects.edition_type
    )
  ) 
  AND ushop_settings_objects.object_id = 6686 
ORDER BY 
  ushop_settings_objects.position

Query time 0.00039

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "1.00"
    },
    "ordering_operation": {
      "using_filesort": false,
      "nested_loop": [
        {
          "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.10",
              "prefix_cost": "0.00",
              "data_read_per_join": "24"
            },
            "used_columns": [
              "object_id",
              "company_id",
              "storefront_id",
              "value"
            ]
          }
        },
        {
          "table": {
            "table_name": "ushop_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.10",
              "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
6686 A wk_order_confirm_data_tpl_data a:19:{s:17:"wk_valid_url_days";s:1:"0";s:7:"v_hours";s:1:"0";s:8:"v_minute";s:1:"7";s:4:"days";s:1:"0";s:5:"hours";s:1:"0";s:6:"minute";s:1:"5";s:27:"on_which_order_status_value";s:1:"W";s:18:"order_status_value";s:1:"C";s:27:"order_status_value_unsucess";s:1:"B";s:23:"marking_to_show_buttons";s:1:"B";s:11:"ch_customer";s:1:"y";s:16:"custom_email_dis";s:0:"";s:15:"ch_auto_confirm";s:1:"y";s:9:"mail_text";s:3101:"<p><strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Nombre:</font></font></strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">[#firstname#] [#lastname#] </font></font></p> <p><strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Id del pedido</font></font></strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">:[#order_id#] </font></font></p> <p><strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Fecha del pedido</font></font></strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">:[#order_date#] </font></font></p> <p><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">[%% </font></font></p> <p><strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">nombre del producto</font></font></strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">: [#product_name#] </font></font></p> <p><strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Precio del producto</font></font></strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">: [#product_price#] </font></font></p> <p><strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Código de producto</font></font></strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">: [#product_code#] </font></font></p> <p><strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Cantidad del producto</font></font></strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">: [#product_quantity#]</font></font><br> </p> <p><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">%%] </font></font></p> <p><strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Pedido recibido:</font></font></strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> [#confirm_url#] </font></font></p> <p><strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Pedido no recibido:</font></font></strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> [#not_confirm_url#] </font></font></p> <p><strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Periodo de validez del enlace:</font></font></strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> [#validity_period#] </font></font></p> <p><strong><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Gracias</font></font></strong> </p> ";s:29:"mail_text_to_order_department";s:1744:" <p><strong>Customer Name :</strong>[#firstname#] [#lastname#] </p> <p><strong>Order Id</strong>:[#order_id#] </p> <p><strong>Delivery Response</strong>:[#delivery_response#] </p> <p><strong>Delivery Confirmation Date</strong>:[#delivery_confirm_date#] </p> <p>[%% </p> <p><strong>product name</strong>: [#product_name#] </p> <p><strong>Product price</strong>: [#product_price#] </p> <p><strong>Product code</strong>: [#product_code#] </p> <p><strong>Product Quantity</strong>: [#product_quantity#]<br> </p> <p>%%] </p> <p><strong>Thank You</strong><br> </p> ";s:19:"mail_text_to_vendor";s:2128:" <p><strong>Customer Name :</strong>[#firstname#] [#lastname#] </p> <p><strong>Order Id</strong>:[#order_id#] </p> <p><strong>Delivery Response</strong>:[#delivery_response#] </p> <p><strong>Delivery Confirmation Date</strong>:[#delivery_confirm_date#] </p> <p>[%% </p> <p><strong>product name</strong>: [#product_name#] </p> <p><strong>Product price</strong>: [#product_price#] </p> <p><strong>Product code</strong>: [#product_code#] </p> <p><strong>Product Quantity</strong>: [#product_quantity#]<br> </p> <p>%%] </p> <p><strong>Thank You</strong><br> </p> ";s:21:"mail_text_to_customer";s:1668:" <p><strong>Customer Name :</strong>[#firstname#] [#lastname#] </p> <p><strong>Order Id</strong>:[#order_id#] </p> <p><strong>Delivery Response</strong>:[#delivery_response#] </p> <p><strong>Delivery Confirmation Date</strong>:[#delivery_confirm_date#] </p> <p>[%% </p> <p><strong>product name</strong>: [#product_name#] </p> <p><strong>Product price</strong>: [#product_price#] </p> <p><strong>Product code</strong>: [#product_code#] </p> <p><strong>Product Quantity</strong>: [#product_quantity#]<br> </p> <p>%%] </p> <p><strong>Thank You</strong><br> </p> ";s:23:"mail_text_to_custom_ids";s:1627:" <p><strong>Customer Name :</strong>[#firstname#] [#lastname#] </p> <p><strong>Order Id</strong>:[#order_id#] </p> <p><strong>Delivery Response</strong>:[#delivery_response#] </p> <p><strong>Delivery Confirmation Date</strong>:[#delivery_confirm_date#] </p> <p>[%% </p> <p><strong>product name</strong>: [#product_name#] </p> <p><strong>Product price</strong>: [#product_price#] </p> <p><strong>Product code</strong>: [#product_code#] </p> <p><strong>Product Quantity</strong>: [#product_quantity#]<br> </p> <p>%%] </p> <p><strong>Thank You</strong><br> </p> ";s:32:"mail_text_confirm_by_auto_system";s:1448:" <p><strong>Order Id</strong>:[#order_id#] </p> <p><strong>Delivery Confirmation Date</strong>:[#delivery_confirm_date#] </p> <p>[%% </p> <p><strong>product name</strong>: [#product_name#] </p> <p><strong>Product price</strong>: [#product_price#] </p> <p><strong>Product code</strong>: [#product_code#] </p> <p><strong>Product Quantity</strong>: [#product_quantity#]<br> </p> <p>%%] </p> <p><strong>Thank You</strong><br> </p> ";}