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 ('14693')

Query time 0.00504

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "5.37"
    },
    "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.12",
            "eval_cost": "0.50",
            "prefix_cost": "5.37",
            "data_read_per_join": "18K"
          },
          "used_columns": [
            "id",
            "path"
          ]
        }
      }
    ]
  }
}

Result

path product_id alt
https://s3.timeweb.cloud/482029f9-prod/products__images/14693_6fe4ee0dccda_IMG-20231219-WA0017_k73i-i1_86n0-4i.webp 14693
https://s3.timeweb.cloud/482029f9-prod/products__images/14693_eb868790b1c8_IMG-20231219-WA0019_miqj-uk_75dx-x7.webp 14693
https://s3.timeweb.cloud/482029f9-prod/products__images/14693_84a918075887_IMG-20231219-WA0023_key8-wl_2xx7-el.webp 14693
https://s3.timeweb.cloud/482029f9-prod/products__images/14693_eb91851b4323_photo_2023-12-05_15-21-33_8dsb-xk_aft0-u2.webp 14693
https://s3.timeweb.cloud/482029f9-prod/products__images/14693_534cdd1eba14_photo_2023-12-05_15-21-23_ffs0-30_uv5w-t0.webp 14693