SELECT 
  `F`.`path`, 
  `PI`.`product_id`, 
  `PI`.`alt` 
FROM 
  `cscart_products__images` AS `PI` 
  LEFT JOIN `files` AS `F` ON `PI`.`watermark_small_file_id` = `F`.`id` 
WHERE 
  `PI`.`product_id` IN ('28921')

Query time 0.00042

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "5.38"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "PI",
          "access_type": "ref",
          "possible_keys": [
            "product_id"
          ],
          "key": "product_id",
          "used_key_parts": [
            "product_id"
          ],
          "key_length": "3",
          "ref": [
            "const"
          ],
          "rows_examined_per_scan": 5,
          "rows_produced_per_join": 5,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "1.25",
            "eval_cost": "0.50",
            "prefix_cost": "1.75",
            "data_read_per_join": "160"
          },
          "used_columns": [
            "product_id",
            "watermark_small_file_id",
            "alt"
          ]
        }
      },
      {
        "table": {
          "table_name": "F",
          "access_type": "eq_ref",
          "possible_keys": [
            "PRIMARY"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "id"
          ],
          "key_length": "4",
          "ref": [
            "dev2.PI.watermark_small_file_id"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 5,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "3.13",
            "eval_cost": "0.50",
            "prefix_cost": "5.38",
            "data_read_per_join": "18K"
          },
          "used_columns": [
            "id",
            "path"
          ]
        }
      }
    ]
  }
}

Result

path product_id alt
https://s3.timeweb.cloud/482029f9-prod/products__images/28921_5d161157cb4b_28922_e351543b142d_0_c6d847fb09ac_dkvqbFh_rhw.webp 28921
https://s3.timeweb.cloud/482029f9-prod/products__images/28921_1b7f7f815702_28922_1732ee4415cc_0_8407e55f5678_RIrqKodL0zo.webp 28921
https://s3.timeweb.cloud/482029f9-prod/products__images/28921_ce1dec7f6257_28922_610cc92d3fa4_0_b599e595796b_MV2PSeZ6pmQ%252520%2525281%252529.webp 28921
https://s3.timeweb.cloud/482029f9-prod/products__images/28921_cd970c1cca51_28922_0a00f10a324a_0_cc6a5f86d14b_4HKhPH2z3wE.webp 28921
https://s3.timeweb.cloud/482029f9-prod/products__images/28921_7554690f0790_28922_dccd3915853b_0_cc5eb876996e_OrUXGt7QECo.webp 28921