SELECT 
  COUNT(*) 
FROM 
  ushop_promotions 
  LEFT JOIN ushop_promotion_descriptions ON ushop_promotion_descriptions.promotion_id = ushop_promotions.promotion_id 
  AND ushop_promotion_descriptions.lang_code = 'es' 
  LEFT JOIN ushop_storefronts_promotions AS storefronts_promotions ON storefronts_promotions.promotion_id = ushop_promotions.promotion_id 
  LEFT JOIN ushop_promotion_images ON ushop_promotion_images.promotion_id = ushop_promotions.promotion_id 
  AND ushop_promotion_images.lang_code = 'es' 
WHERE 
  1 
  AND IF(
    from_date, from_date <= 1771276470, 
    1
  ) 
  AND IF(to_date, to_date >= 1771276470, 1) 
  AND status IN ('A') 
  AND (
    storefronts_promotions.storefront_id = 1 
    OR storefronts_promotions.storefront_id IS NULL
  ) 
  AND ushop_promotions.promotion_id NOT IN (25, 26, 27, 30) 
  AND 1

Query time 0.00083

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "2.13"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "storefronts_promotions",
          "access_type": "system",
          "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": "16"
          },
          "used_columns": [
            "storefront_id",
            "promotion_id"
          ]
        }
      },
      {
        "table": {
          "table_name": "ushop_promotions",
          "access_type": "ALL",
          "possible_keys": [
            "PRIMARY"
          ],
          "rows_examined_per_scan": 12,
          "rows_produced_per_join": 1,
          "filtered": "9.17",
          "cost_info": {
            "read_cost": "1.81",
            "eval_cost": "0.11",
            "prefix_cost": "1.92",
            "data_read_per_join": "88"
          },
          "used_columns": [
            "promotion_id",
            "to_date",
            "from_date",
            "status"
          ],
          "attached_condition": "((0 <> if(`marketplace`.`ushop_promotions`.`from_date`,(`marketplace`.`ushop_promotions`.`from_date` <= 1771276470),1)) and (0 <> if(`marketplace`.`ushop_promotions`.`to_date`,(`marketplace`.`ushop_promotions`.`to_date` >= 1771276470),1)) and (`marketplace`.`ushop_promotions`.`status` = 'A') and (`marketplace`.`ushop_promotions`.`promotion_id` not in (25,26,27,30)))"
        }
      },
      {
        "table": {
          "table_name": "ushop_promotion_descriptions",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "promotion_id",
            "lang_code"
          ],
          "key_length": "9",
          "ref": [
            "marketplace.ushop_promotions.promotion_id",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "0.00",
            "eval_cost": "0.11",
            "prefix_cost": "2.03",
            "data_read_per_join": "2K"
          },
          "used_columns": [
            "promotion_id",
            "lang_code"
          ]
        }
      },
      {
        "table": {
          "table_name": "ushop_promotion_images",
          "access_type": "eq_ref",
          "possible_keys": [
            "promo"
          ],
          "key": "promo",
          "used_key_parts": [
            "promotion_id",
            "lang_code"
          ],
          "key_length": "10",
          "ref": [
            "marketplace.ushop_promotions.promotion_id",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 1,
          "filtered": "100.00",
          "using_index": true,
          "cost_info": {
            "read_cost": "0.00",
            "eval_cost": "0.11",
            "prefix_cost": "2.14",
            "data_read_per_join": "17"
          },
          "used_columns": [
            "promotion_id",
            "lang_code"
          ],
          "attached_condition": "<if>(is_not_null_compl(ushop_promotion_images), (`marketplace`.`ushop_promotion_images`.`promotion_id` = `marketplace`.`ushop_promotions`.`promotion_id`), true)"
        }
      }
    ]
  }
}

Result

COUNT(*)
1