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 = 'en' 
WHERE 
  cscart_images_links.object_type = 'product' 
  AND cscart_images_links.type = 'M' 
  AND cscart_images_links.object_id IN (
    2698, 3834, 3835, 2430, 2431, 5117, 5116, 
    5114, 2922, 2923, 2702, 2703, 3216, 
    3215, 3213, 3214, 3552, 3553, 3150, 
    3151, 3664, 3665, 2655, 2227, 2226, 
    2719, 2728, 3385, 3386, 3832, 3831, 
    3290, 3289, 3382, 3383, 3222, 3223, 
    3522, 3523, 5804, 6193, 3310, 3309, 
    2918, 2919, 3532, 3533, 3220, 3221, 
    3668, 4102, 4106, 3684, 4103, 3682
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00432

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "132.01"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "55.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": 55,
            "rows_produced_per_join": 55,
            "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 (2698,3834,3835,2430,2431,5117,5116,5114,2922,2923,2702,2703,3216,3215,3213,3214,3552,3553,3150,3151,3664,3665,2655,2227,2226,2719,2728,3385,3386,3832,3831,3290,3289,3382,3383,3222,3223,3522,3523,5804,6193,3310,3309,2918,2919,3532,3533,3220,3221,3668,4102,4106,3684,4103,3682)))",
            "cost_info": {
              "read_cost": "33.01",
              "eval_cost": "5.50",
              "prefix_cost": "38.51",
              "data_read_per_join": "5K"
            },
            "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": 55,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "13.75",
              "eval_cost": "5.50",
              "prefix_cost": "57.76",
              "data_read_per_join": "42K"
            },
            "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": 55,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "13.75",
              "eval_cost": "5.50",
              "prefix_cost": "77.01",
              "data_read_per_join": "32K"
            },
            "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 5_1__2avq-a7.jpg 600 600 N N Y 14550 2226 product 11113 M 0 11113
0 6_2_.jpg 600 600 N N Y 14552 2227 product 11114 M 0 11114
0 Untitled_design__72_.jpg 600 600 N N Y 17464 3150 product 13069 M 0 13069
0 Untitled_design__73__xll0-p5.jpg 600 600 N N Y 17466 3151 product 13071 M 0 13071
0 Delivard_Product_Images__61_.jpg 600 600 N N Y 17687 3213 product 13278 M 0 13278
0 K9runttOnBQVMkgNt0lWkRdu5hEwSVnuesroqwtu.jpg 800 800 N N Y 17689 3214 product 13279 M 0 13279
0 Delivard_Product_Images__62_.jpg 600 600 N N Y 17691 3215 product 13280 M 0 13280
0 A9B5CUbhAlK2BryNcP6avPJ3DlpCHvOU3lWTQpK0.jpg 800 800 N N Y 17693 3216 product 13281 M 0 13281
0 Delivard_Product_Images__64_.jpg 600 600 N N Y 17736 3220 product 13323 M 0 13323
0 Delivard_Product_Images__65_.jpg 600 600 N N Y 17743 3222 product 13328 M 0 13328
0 vRPpakZGSrB4sM76apNGey0uQRDUTbrgmRxcLRKK.png 700 700 N N Y 17745 3223 product 13329 M 0 13329
0 Untitled_design_-_2025-07-20T144309.388_df29-q1.jpg 600 600 N N Y 17804 2728 product 13379 M 0 13379
0 Untitled_design_-_2025-07-21T143349.827.jpg 600 600 N N Y 17997 2918 product 13560 M 0 13560
0 Untitled_design_-_2025-07-21T143455.305_rfgh-7e.jpg 600 600 N N Y 17999 2919 product 13562 M 0 13562
0 Untitled_design__4__awfk-fa.jpg 600 600 N N Y 18063 3289 product 13626 M 0 13626
0 5d061a43fc8608f2_CAB009-BLK_BoostChargePro_SilaCoreEntry_USB-CtoUSB-C_Front_WEB.jpg 700 700 N N Y 18065 3290 product 13627 M 0 13627
0 Untitled_design__11__26ch-ce.jpg 600 600 N N Y 18085 3309 product 13646 M 0 13646
0 O6Pu8XDt03y3c3KbAJrQkk78T2uqWolCOQVOC6UG.jpg 800 800 N N Y 18087 3310 product 13647 M 0 13647
0 Untitled_design_-_2025-07-26T233638.595.jpg 600 600 N N Y 18256 3382 product 13796 M 0 13796
0 Untitled_design_-_2025-07-26T233846.888.jpg 600 600 N N Y 18264 3383 product 13800 M 0 13800
0 Untitled_design_-_2025-07-27T001807.555.jpg 600 600 N N Y 18272 3385 product 13808 M 0 13808
0 Untitled_design_-_2025-07-27T002116.649.jpg 600 600 N N Y 18280 3386 product 13812 M 0 13812
0 Delivard_Product_Images_-_2025-07-27T212330.138.jpg 600 600 N N Y 18387 2655 product 13913 M 0 13913
0 Untitled_design__48__47fr-uw.jpg 600 600 N N Y 18769 3522 product 14235 M 0 14235
0 paAKt8fxovdHyAl0oUUHgVOAyoMRIkLE1mOSsTvA.jpg 800 800 N N Y 18771 3523 product 14236 M 0 14236
0 Untitled_design__56__tm5r-ub.jpg 600 600 N N Y 18783 3532 product 14245 M 0 14245
0 2355807827454_23bv-1l.png 1000 1000 N N Y 18786 3533 product 14247 M 0 14247
0 Untitled_design__65__0n26-dt.jpg 600 600 N N Y 18837 3552 product 14295 M 0 14295
0 Sq8aQ4RojICcOdXYLbepLdlzC7Ag0bKEtDP7MIae.jpg 800 800 N N Y 18839 3553 product 14296 M 0 14296
0 Untitled_design_-_2025-08-04T164755.110.jpg 600 600 N N Y 19378 2431 product 14783 M 0 14783
0 Untitled_design_-_2025-08-04T164723.124_r6tp-6u.jpg 600 600 N N Y 19380 2430 product 14785 M 0 14785
0 Untitled_design_-_2025-08-04T180534.842.jpg 600 600 N N Y 19417 3664 product 14819 M 0 14819
0 Untitled_design_-_2025-08-04T180555.422.jpg 600 600 N N Y 19419 3665 product 14820 M 0 14820
0 Untitled_design_-_2025-08-04T182608.091.jpg 600 600 N N Y 19423 2698 product 14823 M 0 14823
0 Untitled_design_-_2025-08-04T184925.896.jpg 600 600 N N Y 19428 2702 product 14828 M 0 14828
0 Untitled_design_-_2025-08-04T184949.041_fgwm-xt.jpg 600 600 N N Y 19430 2703 product 14830 M 0 14830
0 Delivard_dweh-x4.jpg 900 900 N N Y 19440 3668 product 14840 M 0 14840
0 Delivard_mrta-ja.jpg 900 900 N N Y 19462 3682 product 14851 M 0 14851
0 Delivard_b2qs-fd.jpg 900 900 N N Y 19482 3684 product 14871 M 0 14871
0 Untitled_design_-_2025-08-06T153512.255.jpg 600 600 N N Y 19903 3831 product 15146 M 0 15146
0 Untitled_design_-_2025-08-06T165902.839.jpg 600 600 N N Y 19905 3832 product 15147 M 0 15147
0 Untitled_design_-_2025-08-06T171252.381.jpg 600 600 N N Y 19925 3834 product 15160 M 0 15160
0 3414592832605.png 1000 1000 N N Y 19927 3835 product 15161 M 0 15161
0 Untitled_design_-_2025-08-07T094043.823.jpg 600 600 N N Y 20045 2922 product 15253 M 0 15253
0 Untitled_design_-_2025-08-07T094109.074_5dej-q6.jpg 600 600 N N Y 20047 2923 product 15255 M 0 15255
0 Delivard_dweh-x4.jpg 900 900 N N Y 20827 4102 product 14840 M 0 14840
0 Delivard_mrta-ja.jpg 900 900 N N Y 20850 4103 product 14851 M 0 14851
0 Delivard_b2qs-fd.jpg 900 900 N N Y 20856 4106 product 14871 M 0 14871
0 593d40331582eea1_CAB015-BLK_100W_USB-CtoUSB-C-Braided_Angled_WEB.jpg 700 700 N N Y 20922 3221 product 15928 M 0 15928
0 30_-_2025-09-24T204153.409.jpg 600 600 N N Y 26841 5804 product 20279 M 0 20279
0 MR2C2_AV1_rxdy-1o.jpeg 1144 1144 N N Y 29194 6193 product 21474 M 0 21474
0 Untitled_design_-_2025-07-20T144006.058.jpg 600 600 N N Y 17794 2719 product 13369 M 2 13369
0 Delivard_Template_zzep-o6.jpg 900 900 N N Y 24890 5114 product 18759 M 7 18759
0 Delivard_Template_g7zg-uq.jpg 900 900 N N Y 24893 5117 product 18760 M 8 18760
0 Delivard_Template_bhb8-fa.jpg 900 900 N N Y 24894 5116 product 18761 M 8 18761