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 (
    3055, 3058, 3059, 3026, 3030, 3029, 3016, 
    3017, 3018, 3019, 3034, 3033, 3039, 
    3041, 3037, 3038, 3021, 3022, 3011, 
    3012, 3013, 3069, 3070, 3071, 3072, 
    3014, 3015, 3023, 3024, 3084, 3085, 
    3031, 3036, 3602, 3078, 3079, 3080, 
    3066, 3067
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00218

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "93.61"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "39.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": 39,
            "rows_produced_per_join": 39,
            "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 (3055,3058,3059,3026,3030,3029,3016,3017,3018,3019,3034,3033,3039,3041,3037,3038,3021,3022,3011,3012,3013,3069,3070,3071,3072,3014,3015,3023,3024,3084,3085,3031,3036,3602,3078,3079,3080,3066,3067)))",
            "cost_info": {
              "read_cost": "23.41",
              "eval_cost": "3.90",
              "prefix_cost": "27.31",
              "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": 39,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "9.75",
              "eval_cost": "3.90",
              "prefix_cost": "40.96",
              "data_read_per_join": "30K"
            },
            "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": 39,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "9.75",
              "eval_cost": "3.90",
              "prefix_cost": "54.61",
              "data_read_per_join": "23K"
            },
            "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_384q-sj.jpg 600 600 N N Y 16977 3011 product 12696 M 0 12696
0 Delivard2.jpg 600 600 N N Y 16988 3012 product 12701 M 0 12701
0 Delivard1.jpg 600 600 N N Y 16992 3013 product 12705 M 0 12705
0 Delivard_gl5o-wq.jpg 600 600 N N Y 17003 3014 product 12716 M 0 12716
0 Delivard_bw1y-bz.jpg 600 600 N N Y 17015 3015 product 12725 M 0 12725
0 0_f00l-ca.jpg 600 600 N N Y 17032 3018 product 12731 M 0 12731
0 Delivard1_xsom-5v.jpg 600 600 N N Y 17040 3016 product 12741 M 0 12741
0 Delivard2_tsct-y1.jpg 600 600 N N Y 17046 3017 product 12747 M 0 12747
0 Delivard_sq03-cr.jpg 600 600 N N Y 17049 3019 product 12750 M 0 12750
0 Delivard2_al2b-56.jpg 600 600 N N Y 17054 3021 product 12755 M 0 12755
0 Delivard_m283-y4.jpg 600 600 N N Y 17060 3022 product 12758 M 0 12758
0 Delivard2_evvl-aj.jpg 600 600 N N Y 17063 3023 product 12761 M 0 12761
0 Delivard_2vh3-lu.jpg 600 600 N N Y 17069 3024 product 12764 M 0 12764
0 Delivard_cmvq-yj.jpg 600 600 N N Y 17075 3026 product 12770 M 0 12770
0 0_s1tr-r8.jpg 600 600 N N Y 17086 3029 product 12773 M 0 12773
0 Delivard2_67if-o8.jpg 600 600 N N Y 17089 3030 product 12776 M 0 12776
0 Delivard_htk0-d3.jpg 600 600 N N Y 17103 3033 product 12787 M 0 12787
0 Delivard1_5z7h-hh.jpg 600 600 N N Y 17109 3034 product 12790 M 0 12790
0 195713_2025.jpg 1000 1000 N N Y 17115 3036 product 12793 M 0 12793
0 Delivard_qixn-m2.jpg 600 600 N N Y 17118 3031 product 12796 M 0 12796
0 Delivard_xei6-fv.jpg 600 600 N N Y 17123 3037 product 12801 M 0 12801
0 Delivard_9g06-1f.jpg 600 600 N N Y 17129 3038 product 12804 M 0 12804
0 Delivard_mrjj-s7.jpg 600 600 N N Y 17133 3039 product 12808 M 0 12808
0 Delivard_mrjj-s7.jpg 600 600 N N Y 17142 3041 product 12808 M 0 12808
0 Delivard_r3zq-2m.jpg 600 600 N N Y 17191 3055 product 12844 M 0 12844
0 Delivard1_glmu-pr.jpg 600 600 N N Y 17200 3058 product 12847 M 0 12847
0 Delivard2_hgl0-h8.jpg 600 600 N N Y 17203 3059 product 12850 M 0 12850
0 Delivard_0bwn-8a.jpg 600 600 N N Y 17209 3066 product 12856 M 0 12856
0 Delivard2_opt9-qx.jpg 600 600 N N Y 17215 3067 product 12859 M 0 12859
0 0_p6xd-3g.jpg 600 600 N N Y 17221 3069 product 12865 M 0 12865
0 Delivard2_9rp9-pb.jpg 600 600 N N Y 17233 3070 product 12868 M 0 12868
0 Delivard1_02ie-ld.jpg 600 600 N N Y 17236 3071 product 12871 M 0 12871
0 Delivard_4sfb-gq.jpg 600 600 N N Y 17239 3072 product 12874 M 0 12874
0 Delivard_fxyr-ru.jpg 600 600 N N Y 17254 3078 product 12887 M 0 12887
0 Delivard_a6es-99.jpg 600 600 N N Y 17261 3079 product 12891 M 0 12891
0 Delivard_ggjh-rv.jpg 600 600 N N Y 17270 3080 product 12897 M 0 12897
0 Delivard_34xj-xh.jpg 600 600 N N Y 17288 3084 product 12909 M 0 12909
0 Delivard_ots8-xe.jpg 600 600 N N Y 17296 3085 product 12913 M 0 12913
0 Delivard_op12-9n.jpg 900 900 N N Y 19133 3602 product 14576 M 0 14576