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 (
    11306, 11307, 11446, 11447, 11448, 11472, 
    11474, 11475, 11508, 11509, 11086, 
    11085, 11337, 11338, 11348, 11349, 
    11411, 11413, 11412, 11531, 11534, 
    11533, 11477, 11478, 11480, 11430, 
    11431, 11479, 11481, 11600, 11598, 
    11599, 11362, 11363, 11416, 11415, 
    11414, 11417, 11520, 11521, 11535, 
    11536, 11633, 11634, 11635, 11636, 
    11390, 11391, 11399, 11400, 11530, 
    11532, 11236, 11237, 11462, 11463, 
    11137, 11136, 11352, 11355, 11458, 
    11460
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00319

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "148.81"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "62.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": 62,
            "rows_produced_per_join": 62,
            "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 (11306,11307,11446,11447,11448,11472,11474,11475,11508,11509,11086,11085,11337,11338,11348,11349,11411,11413,11412,11531,11534,11533,11477,11478,11480,11430,11431,11479,11481,11600,11598,11599,11362,11363,11416,11415,11414,11417,11520,11521,11535,11536,11633,11634,11635,11636,11390,11391,11399,11400,11530,11532,11236,11237,11462,11463,11137,11136,11352,11355,11458,11460)))",
            "cost_info": {
              "read_cost": "37.21",
              "eval_cost": "6.20",
              "prefix_cost": "43.41",
              "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": 62,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "15.50",
              "eval_cost": "6.20",
              "prefix_cost": "65.11",
              "data_read_per_join": "47K"
            },
            "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": 62,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "15.50",
              "eval_cost": "6.20",
              "prefix_cost": "86.81",
              "data_read_per_join": "36K"
            },
            "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 image_2026-01-22_002932256.png 600 600 N N N 43949 11085 product 34134 M 0 34134
0 image_2026-01-22_003018419.png 600 600 N N N 43950 11086 product 34135 M 0 34135
0 image_2026-01-22_020348024.png 600 600 N N N 44123 11136 product 34294 M 0 34294
0 image_2026-01-22_020524463.png 600 600 N N N 44128 11137 product 34299 M 0 34299
0 image_2026-01-24_052357767.png 600 600 N N N 44473 11236 product 34602 M 0 34602
0 Untitled_design__94__q7ho-ek.jpg 600 600 N N N 44850 11306 product 34876 M 0 34876
0 image_2026-01-26_194647263.png 600 600 N N N 44998 11337 product 34982 M 0 34982
0 image_2026-01-26_202641864.png 600 600 N N N 45088 11348 product 35037 M 0 35037
0 image_2026-01-26_202936775.png 600 600 N N N 45103 11349 product 35047 M 0 35047
0 Untitled_design_-_2026-01-26T203849.859.jpg 600 600 N N N 45118 11352 product 35057 M 0 35057
0 Untitled_design_-_2026-01-26T205244.662.jpg 600 600 N N N 45144 11355 product 35073 M 0 35073
0 Untitled_design_-_2026-01-26T233254.875.jpg 600 600 N N N 45237 11362 product 35151 M 0 35151
0 Untitled_design_-_2026-01-26T233839.008.jpg 600 600 N N N 45247 11363 product 35156 M 0 35156
0 Untitled_design_-_2026-01-27T175329.186.jpg 600 600 N N N 45375 11390 product 35263 M 0 35263
0 Untitled_design_-_2026-01-27T184815.992.jpg 600 600 N N N 45445 11399 product 35308 M 0 35308
0 Untitled_design_-_2026-01-27T202508.811.jpg 600 600 N N N 45540 11411 product 35368 M 0 35368
0 image_2026-01-27_232343855.png 600 600 N N N 45565 11414 product 35383 M 0 35383
0 Untitled_design_-_2026-01-28T105221.409.jpg 600 600 N N N 45705 11430 product 35463 M 0 35463
0 Untitled_design_-_2026-01-28T225810.214.jpg 600 600 N N N 45792 11446 product 35520 M 0 35520
0 Untitled_design_-_2026-01-28T231004.310.jpg 600 600 N N N 45812 11448 product 35530 M 0 35530
0 image_2026-01-29_014504834.png 600 600 N N N 45861 11458 product 35567 M 0 35567
0 image_2026-01-29_015238266.png 600 600 N N N 45891 11462 product 35587 M 0 35587
0 image_2026-01-29_022814642.png 600 600 N N N 45976 11472 product 35642 M 0 35642
0 image_2026-01-29_022915898.png 600 600 N N N 45986 11475 product 35647 M 0 35647
0 Untitled_design_-_2026-01-29T023048.802.jpg 600 600 N N N 45991 11474 product 35652 M 0 35652
0 image_2026-01-29_023625730.png 600 600 N N N 46001 11477 product 35662 M 0 35662
0 Untitled_design_-_2026-01-29T023738.924.jpg 600 600 N N N 46011 11479 product 35667 M 0 35667
0 image_2026-01-29_024046262.png 600 600 N N N 46016 11478 product 35672 M 0 35672
0 image_2026-01-29_024313719.png 600 600 N N N 46026 11480 product 35677 M 0 35677
0 Untitled_design_-_2026-01-31T001905.398.jpg 600 600 N N N 46243 11508 product 35819 M 0 35819
0 Untitled_design_-_2026-01-31T175417.763_y074-t6.jpg 600 600 N N N 46335 11520 product 35876 M 0 35876
0 Untitled_design_-_2026-01-31T183452.801.jpg 600 600 N N N 46395 11530 product 35926 M 0 35926
0 image_2026-01-31_183608237.png 600 600 N N N 46396 11531 product 35927 M 0 35927
0 image_2026-01-31_184256016.png 600 600 N N N 46430 11534 product 35946 M 0 35946
0 Untitled_design_-_2026-01-31T184230.806.jpg 600 600 N N N 46435 11535 product 35951 M 0 35951
0 image_2026-02-04_033641613.png 600 600 N N N 46706 11598 product 36154 M 0 36154
0 image_2026-02-04_034210160.png 600 600 N N N 46726 11599 product 36164 M 0 36164
0 image_2026-02-05_115849840.png 600 600 N N N 46814 11633 product 36247 M 0 36247
0 image_2026-02-05_115958521.png 600 600 N N N 46819 11636 product 36252 M 0 36252
0 image_2026-02-05_120145558.png 600 600 N N N 46824 11635 product 36257 M 0 36257
0 image_2026-02-05_120254564.png 600 600 N N N 46829 11634 product 36262 M 0 36262
0 image_2026-01-24_052915360.png 600 600 N N N 44483 11237 product 34607 M 5 34607
0 Untitled_design__95__dq3f-hw.jpg 600 600 N N N 44860 11307 product 34881 M 5 34881
0 image_2026-01-26_195157208.png 600 600 N N N 45018 11338 product 34987 M 5 34987
0 Untitled_design_-_2026-01-27T175551.819.jpg 600 600 N N N 45385 11391 product 35268 M 5 35268
0 Untitled_design_-_2026-01-27T185450.156.jpg 600 600 N N N 45455 11400 product 35313 M 5 35313
0 Untitled_design_-_2026-01-27T213517.186.jpg 600 600 N N N 45555 11412 product 35373 M 5 35373
0 Untitled_design_-_2026-01-27T213825.803.jpg 600 600 N N N 45560 11413 product 35378 M 5 35378
0 image_2026-01-28_002019704.png 600 600 N N N 45585 11416 product 35388 M 5 35388
0 image_2026-01-28_002115135.png 600 600 N N N 45590 11417 product 35393 M 5 35393
0 image_2026-01-28_002340028.png 600 600 N N N 45595 11415 product 35398 M 5 35398
0 Untitled_design_-_2026-01-28T105747.763.jpg 600 600 N N N 45715 11431 product 35468 M 5 35468
0 Untitled_design_-_2026-01-28T230445.963.jpg 600 600 N N N 45802 11447 product 35525 M 5 35525
0 image_2026-01-29_014754354.png 600 600 N N N 45876 11460 product 35577 M 5 35577
0 image_2026-01-29_015505639.png 600 600 N N N 45901 11463 product 35592 M 5 35592
0 Untitled_design_-_2026-01-29T024535.225.jpg 600 600 N N N 46036 11481 product 35682 M 5 35682
0 Untitled_design_-_2026-01-31T002330.108.jpg 600 600 N N N 46253 11509 product 35824 M 5 35824
0 Untitled_design_-_2026-01-31T180138.853_traj-jm.jpg 600 600 N N N 46345 11521 product 35881 M 5 35881
0 Untitled_design_-_2026-01-31T183944.771.jpg 600 600 N N N 46420 11532 product 35936 M 5 35936
0 untitled_image_2tw7-0z.jpg 900 900 N N N 46425 11533 product 35941 M 5 35941
0 Untitled_design_-_2026-01-31T184652.872.jpg 600 600 N N N 46445 11536 product 35956 M 5 35956
0 image_2026-02-04_034033240.png 600 600 N N N 46721 11600 product 36159 M 5 36159