SELECT 
  cscart_images.*, 
  cscart_images_links.*, 
  cscart_common_descriptions.description AS alt, 
  cscart_images.image_id AS images_image_id 
FROM 
  cscart_images_links 
  LEFT JOIN cscart_images ON cscart_images_links.detailed_id = cscart_images.image_id 
  LEFT JOIN cscart_common_descriptions ON cscart_common_descriptions.object_id = cscart_images.image_id 
  AND cscart_common_descriptions.object_holder = 'images' 
  AND cscart_common_descriptions.lang_code = 'ar' 
WHERE 
  cscart_images_links.object_type = 'product' 
  AND cscart_images_links.type = 'M' 
  AND cscart_images_links.object_id IN (
    4192, 4193, 3429, 3428, 3427, 2924, 2925, 
    4301, 4304, 4306, 4308, 4305, 2603, 
    2609, 2610, 2611, 3136, 3137, 3138, 
    2571, 2572
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00221

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "50.41"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "21.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_images_links",
            "access_type": "range",
            "possible_keys": [
              "object_id"
            ],
            "key": "object_id",
            "used_key_parts": [
              "object_id",
              "object_type",
              "type"
            ],
            "key_length": "81",
            "rows_examined_per_scan": 21,
            "rows_produced_per_join": 21,
            "filtered": "100.00",
            "index_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_images_links`.`object_type` = 'product') and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_images_links`.`type` = 'M') and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_images_links`.`object_id` in (4192,4193,3429,3428,3427,2924,2925,4301,4304,4306,4308,4305,2603,2609,2610,2611,3136,3137,3138,2571,2572)))",
            "cost_info": {
              "read_cost": "12.61",
              "eval_cost": "2.10",
              "prefix_cost": "14.71",
              "data_read_per_join": "1K"
            },
            "used_columns": [
              "pair_id",
              "object_id",
              "object_type",
              "image_id",
              "detailed_id",
              "type",
              "position"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_images",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "image_id"
            ],
            "key_length": "4",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 21,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "5.25",
              "eval_cost": "2.10",
              "prefix_cost": "22.06",
              "data_read_per_join": "16K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y",
              "is_high_res",
              "transparent",
              "cp_in_opt_list"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_common_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "lang_code",
              "object_holder"
            ],
            "key_length": "108",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 21,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "5.25",
              "eval_cost": "2.10",
              "prefix_cost": "29.41",
              "data_read_per_join": "12K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ]
          }
        }
      ]
    }
  }
}

Result

image_id image_path image_x image_y is_high_res transparent cp_in_opt_list pair_id object_id object_type detailed_id type position alt images_image_id
0 Delivard_atle-hw.jpg 600 600 N N Y 15626 2571 product 11823 M 0 11823
0 Delivard_mkat-jl.jpg 600 600 N N Y 15628 2572 product 11824 M 0 11824
0 Delivard_Product_Images__3__bb08-gw.jpg 600 600 N N Y 15714 2603 product 11866 M 0 11866
0 O6yAHpckPl1J3y0AqsfKrLJCfpN9KoVBFLuDwSRT.jpg 800 800 N N Y 15726 2610 product 11869 M 0 11869
0 Jv0wArPpwsS12706XPyL2ezEE3o8eA68RhiSPJeL.jpg 800 800 N N Y 15728 2609 product 11868 M 0 11868
0 cLOSVJLib9Dslj89yJqbSOkrgWIs38bo68CW7Sw3.jpg 800 800 N N Y 15733 2611 product 11867 M 0 11867
0 Untitled_design__30_.jpg 600 600 N N Y 17384 2924 product 12989 M 0 12989
0 Untitled_design__31__pq6v-lj.jpg 600 600 N N Y 17386 2925 product 12991 M 0 12991
0 Delivard_aopd-uc.jpg 975 975 N N Y 18444 3427 product 13956 M 0 13956
0 Delivard_rwg3-9p.jpg 975 975 N N Y 18450 3428 product 13958 M 0 13958
0 Delivard_08s7-cm.jpg 975 975 N N Y 18452 3429 product 13960 M 0 13960
0 Untitled_design_-_2025-08-03T173051.018.jpg 600 600 N N Y 19165 3136 product 14604 M 0 14604
0 Untitled_design_-_2025-08-03T172914.506_xydp-hg.jpg 600 600 N N Y 19168 3137 product 14607 M 0 14607
0 Untitled_design_-_2025-08-03T173124.842_0sub-fy.jpg 600 600 N N Y 19171 3138 product 14610 M 0 14610
0 Untitled_design_-_2025-08-15T131945.288.jpg 600 600 N N Y 21514 4192 product 16377 M 0 16377
0 Untitled_design_-_2025-08-15T132028.755.jpg 600 600 N N Y 21522 4193 product 16380 M 0 16380
0 Black_604f-x3.jpg 600 600 N N Y 22051 4301 product 16750 M 0 16750
0 Black_604f-x3.jpg 600 600 N N Y 22057 4304 product 16750 M 0 16750
0 Black_604f-x3.jpg 600 600 N N Y 22059 4306 product 16750 M 0 16750
0 Black_604f-x3.jpg 600 600 N N Y 22061 4308 product 16750 M 0 16750
0 Delivard_Product_Images__7_.jpg 600 600 N N Y 22065 4305 product 16749 M 0 16749