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 (
    4117, 4116, 4115, 4297, 4298, 4299, 4269, 
    4270, 4253, 4185, 4589, 4588, 4587, 
    4249, 4212, 4347, 4348, 4349, 4350, 
    4454, 4456, 4457, 4458, 4250, 4207, 
    4130, 4131, 4132, 4312, 4313, 4314, 
    4181, 4254
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00321

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "79.21"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "33.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": 33,
            "rows_produced_per_join": 33,
            "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 (4117,4116,4115,4297,4298,4299,4269,4270,4253,4185,4589,4588,4587,4249,4212,4347,4348,4349,4350,4454,4456,4457,4458,4250,4207,4130,4131,4132,4312,4313,4314,4181,4254)))",
            "cost_info": {
              "read_cost": "19.81",
              "eval_cost": "3.30",
              "prefix_cost": "23.11",
              "data_read_per_join": "3K"
            },
            "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": 33,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "8.25",
              "eval_cost": "3.30",
              "prefix_cost": "34.66",
              "data_read_per_join": "25K"
            },
            "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": 33,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "8.25",
              "eval_cost": "3.30",
              "prefix_cost": "46.21",
              "data_read_per_join": "19K"
            },
            "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 a.jpg 600 600 N N Y 21000 4115 product 16006 M 0 16006
0 b.jpg 600 600 N N Y 21034 4116 product 16030 M 0 16030
0 hd330_r_f.png 2000 2000 N N Y 21051 4117 product 16047 M 0 16047
0 e.jpg 600 600 N N Y 21230 4130 product 16203 M 0 16203
0 bk0.jpg 2000 2000 N N Y 21245 4131 product 16210 M 0 16210
0 bl1.jpg 2000 2000 N N Y 21250 4132 product 16215 M 0 16215
0 Q.jpg 600 600 N N Y 21467 4181 product 16346 M 0 16346
0 T.jpg 600 600 N N Y 21482 4185 product 16357 M 0 16357
0 Q_m69z-tj.jpg 600 600 N N Y 21581 4207 product 16425 M 0 16425
0 3_8tt0-aa.jpg 600 600 N N Y 21595 4212 product 16438 M 0 16438
0 33.jpg 600 600 N N Y 21840 4249 product 16442 M 0 16442
0 Y.jpg 600 600 N N Y 21847 4250 product 16423 M 0 16423
0 331_gallery_bl01.png 1000 1000 N N Y 21861 4253 product 16360 M 0 16360
0 Q2.jpg 600 600 N N Y 21866 4254 product 16348 M 0 16348
0 6_097j-0s.jpg 600 600 N N Y 21915 4269 product 16658 M 0 16658
0 331_gallery_bl01_gr4n-sm.png 1000 1000 N N Y 21923 4270 product 16661 M 0 16661
0 17.jpg 600 600 N N Y 22021 4297 product 16738 M 0 16738
0 17_2.jpg 600 600 N N Y 22034 4298 product 16741 M 0 16741
0 17_3.jpg 600 600 N N Y 22041 4299 product 16744 M 0 16744
0 21.jpg 600 600 N N Y 22073 4312 product 16758 M 0 16758
0 21_3.jpg 600 600 N N Y 22077 4314 product 16760 M 0 16760
0 21_2.jpg 600 600 N N Y 22078 4313 product 16759 M 0 16759
0 27.jpg 600 600 N N Y 22162 4347 product 16809 M 0 16809
0 26_11bt-1e.jpg 600 600 N N Y 22176 4348 product 16818 M 0 16818
0 27_3.jpg 600 600 N N Y 22184 4350 product 16815 M 0 16815
0 27_2.jpg 600 600 N N Y 22189 4349 product 16812 M 0 16812
0 27_iw5c-mu.jpg 600 600 N N Y 22583 4454 product 16949 M 0 16949
0 26_lhg6-6a.jpg 600 600 N N Y 22612 4456 product 16961 M 0 16961
0 27_3_wp5q-lg.jpg 600 600 N N Y 22620 4458 product 16957 M 0 16957
0 27_2_cju9-vg.jpg 600 600 N N Y 22631 4457 product 16953 M 0 16953
0 17_4l2z-yh.jpg 600 600 N N Y 23091 4587 product 17335 M 0 17335
0 17_2_1jd8-pi.jpg 600 600 N N Y 23109 4588 product 17339 M 0 17339
0 17_3_u861-04.jpg 600 600 N N Y 23118 4589 product 17343 M 0 17343