SELECT 
  cscart_promotions.*, 
  cscart_promotion_descriptions.name, 
  cscart_promotion_descriptions.detailed_description, 
  cscart_promotion_descriptions.short_description 
FROM 
  cscart_promotions 
  LEFT JOIN cscart_promotion_descriptions ON cscart_promotion_descriptions.promotion_id = cscart_promotions.promotion_id 
  AND cscart_promotion_descriptions.lang_code = 'pl' 
  LEFT JOIN cscart_storefronts_promotions AS storefronts_promotions ON storefronts_promotions.promotion_id = cscart_promotions.promotion_id 
WHERE 
  1 
  AND IF(
    from_date, from_date <= 1755919100, 
    1
  ) 
  AND IF(to_date, to_date >= 1755919100, 1) 
  AND status IN ('A', 'H') 
  AND cscart_promotions.zone = 'catalog' 
  AND (
    storefronts_promotions.storefront_id = 1 
    OR storefronts_promotions.storefront_id IS NULL
  ) 
  AND 1 
ORDER BY 
  cscart_promotions.stop_other_rules desc, 
  cscart_promotions.priority asc

Query time 0.00054

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "6.21"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "2.40"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_promotions",
            "access_type": "ALL",
            "rows_examined_per_scan": 16,
            "rows_produced_per_join": 1,
            "filtered": "10.00",
            "cost_info": {
              "read_cost": "2.30",
              "eval_cost": "0.16",
              "prefix_cost": "2.46",
              "data_read_per_join": "128"
            },
            "used_columns": [
              "promotion_id",
              "company_id",
              "conditions",
              "bonuses",
              "to_date",
              "from_date",
              "priority",
              "stop",
              "stop_other_rules",
              "zone",
              "conditions_hash",
              "status",
              "number_of_usages",
              "users_conditions_hash",
              "ss_omnibus_apply"
            ],
            "attached_condition": "((0 <> if(`cscartdevel`.`cscart_promotions`.`from_date`,(`cscartdevel`.`cscart_promotions`.`from_date` <= 1755919100),1)) and (0 <> if(`cscartdevel`.`cscart_promotions`.`to_date`,(`cscartdevel`.`cscart_promotions`.`to_date` >= 1755919100),1)) and (`cscartdevel`.`cscart_promotions`.`status` in ('A','H')) and (`cscartdevel`.`cscart_promotions`.`zone` = 'catalog'))"
          }
        },
        {
          "table": {
            "table_name": "cscart_promotion_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "promotion_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "cscartdevel.cscart_promotions.promotion_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 1,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.40",
              "eval_cost": "0.16",
              "prefix_cost": "3.02",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "promotion_id",
              "name",
              "short_description",
              "detailed_description",
              "lang_code"
            ]
          }
        },
        {
          "table": {
            "table_name": "storefronts_promotions",
            "access_type": "index",
            "key": "PRIMARY",
            "used_key_parts": [
              "storefront_id",
              "promotion_id"
            ],
            "key_length": "8",
            "rows_examined_per_scan": 2,
            "rows_produced_per_join": 2,
            "filtered": "75.00",
            "using_index": true,
            "using_join_buffer": "hash join",
            "cost_info": {
              "read_cost": "0.56",
              "eval_cost": "0.24",
              "prefix_cost": "3.81",
              "data_read_per_join": "38"
            },
            "used_columns": [
              "storefront_id",
              "promotion_id"
            ],
            "attached_condition": "(<if>(found_match(storefronts_promotions), ((`cscartdevel`.`storefronts_promotions`.`storefront_id` = 1) or (`cscartdevel`.`storefronts_promotions`.`storefront_id` is null)), true) and <if>(is_not_null_compl(storefronts_promotions), (`cscartdevel`.`storefronts_promotions`.`promotion_id` = `cscartdevel`.`cscart_promotions`.`promotion_id`), true))"
          }
        }
      ]
    }
  }
}

Result

promotion_id company_id conditions bonuses to_date from_date priority stop stop_other_rules zone conditions_hash status number_of_usages users_conditions_hash ss_omnibus_apply name detailed_description short_description
35 0 a:2:{s:3:"set";s:3:"all";s:9:"set_value";s:1:"1";} a:0:{} 0 0 0 N N catalog A 0 N Eden kod zniżkowy <p><span style="color: var(--redactor2-text-color);"><strong>Eden – odkrywaj rośliny, zdobywaj nagrody, kupuj zdrowo</strong><br></span><span style="color: var(--redactor2-text-color);">Eden to aplikacja, która pokazuje dzikie, jadalne rośliny w Twojej okolicy.<br></span><span style="color: var(--redactor2-text-color);">Uczy, jak je rozpoznawać i wykorzystywać kulinarnie oraz medycznie.<br></span><span style="color: var(--redactor2-text-color);">Łączy Cię z lokalnymi rolnikami i naturalnymi produktami z Twojego regionu.</span></p> <p>Dodawaj dzikie, jadalne rośliny w aplikacji Eden i zdobywaj punkty EDN.<br>Wymień je w apce na <strong>Eden Bon</strong> o wartości <strong>10, 20, 50, 100 lub 200 zł</strong> i użyj go jako kodu zniżkowego podczas zakupów w naszym marketplace.</p> <p> </p> <p><strong>Pobierz Eden i zamień naturę w zdrowe zakupy:<br></strong><a href="https://play.google.com/store/apps/details?id=app.oureden" target="_blank">Google Play</a>&nbsp;|&nbsp;<a href="https://apps.apple.com/pl/app/eden-znajd%C5%BA-jadalne-ro%C5%9Bliny/id1554518509?l=pl" target="_blank">App Store</a></p>