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 (
    11033, 11032, 11031, 11028, 11027, 11550, 
    11553, 11358, 11359, 11107, 11106, 
    11104, 11141, 11142, 11122, 11121, 
    11133, 11135, 10996, 10993, 11008, 
    11356, 11357, 10982, 10978, 10983, 
    11140, 11139, 11145, 11146, 11426, 
    11427, 11428, 11429, 11637, 11638, 
    11350, 11351, 11148, 11151, 11150, 
    11149, 11418, 11419, 11420, 11421
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00332

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "114.71"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "48.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": 48,
            "rows_produced_per_join": 48,
            "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 (11033,11032,11031,11028,11027,11550,11553,11358,11359,11107,11106,11104,11141,11142,11122,11121,11133,11135,10996,10993,11008,11356,11357,10982,10978,10983,11140,11139,11145,11146,11426,11427,11428,11429,11637,11638,11350,11351,11148,11151,11150,11149,11418,11419,11420,11421)))",
            "cost_info": {
              "read_cost": "28.31",
              "eval_cost": "4.80",
              "prefix_cost": "33.11",
              "data_read_per_join": "4K"
            },
            "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": 48,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "12.00",
              "eval_cost": "4.80",
              "prefix_cost": "49.91",
              "data_read_per_join": "37K"
            },
            "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": 48,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "12.00",
              "eval_cost": "4.80",
              "prefix_cost": "66.71",
              "data_read_per_join": "28K"
            },
            "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_v2gy-fm.jpg 600 600 N N N 43472 10983 product 33740 M 0 33740
0 Delivard_6tzm-fg.jpg 600 600 N N N 43473 10982 product 33750 M 0 33750
0 Untitled_design_-_2026-01-19T224612.646.jpg 600 600 N N N 43509 10993 product 33781 M 0 33781
0 image_2026-01-19_234103160.png 600 600 N N N 43550 10996 product 33807 M 0 33807
0 image_2026-01-19_234821884.png 600 600 N N N 43564 10978 product 33821 M 0 33821
0 image_2026-01-20_000117075.png 600 600 N N N 43579 11008 product 33831 M 0 33831
0 Untitled_design_-_2026-01-20T033812.683.jpg 600 600 N N N 43716 11027 product 33924 M 0 33924
0 image_2026-01-20_141657148.png 600 600 N N N 43770 11031 product 33966 M 0 33966
0 image_2026-01-20_141913646.png 600 600 N N N 43778 11032 product 33974 M 0 33974
0 image_2026-01-20_143104117.png 600 600 N N N 43799 11028 product 33995 M 0 33995
0 image_2026-01-22_010436296.png 600 600 N N N 44001 11106 product 34186 M 0 34186
0 Untitled_design__13_.png 600 600 N N N 44034 11133 product 34215 M 0 34215
0 image_2026-01-22_013556557.png 600 600 N N N 44054 11121 product 34230 M 0 34230
0 Untitled_design_-_2026-01-22T015133.016.jpg 600 600 N N N 44093 11141 product 34269 M 0 34269
0 image_2026-01-22_020808687.png 600 600 N N N 44134 11139 product 34305 M 0 34305
0 image_2026-01-22_020908437.png 600 600 N N N 44139 11140 product 34310 M 0 34310
0 Untitled_design_-_2026-01-22T022934.916.jpg 600 600 N N N 44149 11145 product 34320 M 0 34320
0 image_2026-01-24_175343543.png 600 600 N N N 44559 11148 product 34671 M 0 34671
0 Untitled_design__91__nfyh-er.jpg 600 600 N N N 44574 11150 product 34686 M 0 34686
0 Untitled_design__92__8cbf-2o.jpg 600 600 N N N 44579 11151 product 34691 M 0 34691
0 Untitled_design_-_2026-01-26T202729.606.jpg 600 600 N N N 45098 11350 product 35042 M 0 35042
0 Untitled_design_-_2026-01-26T203309.671.jpg 600 600 N N N 45113 11351 product 35052 M 0 35052
0 Untitled_design_-_2026-01-26T210409.151.jpg 600 600 N N N 45156 11356 product 35085 M 0 35085
0 Untitled_design_-_2026-01-26T211155.091.jpg 600 600 N N N 45168 11357 product 35092 M 0 35092
0 Untitled_design_-_2026-01-26T211604.687.jpg 600 600 N N N 45175 11358 product 35099 M 0 35099
0 Untitled_design_-_2026-01-26T212406.622.jpg 600 600 N N N 45188 11359 product 35107 M 0 35107
0 Untitled_design_-_2026-01-28T005913.163.jpg 600 600 N N N 45600 11418 product 35403 M 0 35403
0 Untitled_design_-_2026-01-28T103534.883.jpg 600 600 N N N 45670 11426 product 35443 M 0 35443
0 image_2026-02-01_185506100.png 900 900 N N N 46531 11550 product 36016 M 0 36016
0 image_2026-02-05_121336117.png 600 600 N N N 46834 11637 product 36267 M 0 36267
0 image_2026-01-20_142220652.png 600 600 N N N 43786 11033 product 33982 M 1 33982
0 image_2026-01-22_005253095.png 600 600 N N N 43986 11104 product 34171 M 1 34171
0 Untitled_Image__77_.jpg 900 900 N N N 43991 11107 product 34176 M 1 34176
0 image_2026-01-22_013720850.png 600 600 N N N 44064 11122 product 34240 M 1 34240
0 Untitled_design__90__40k0-te.jpg 600 600 N N N 44569 11149 product 34681 M 1 34681
0 Untitled_design__14_.png 600 600 N N N 44059 11135 product 34235 M 5 34235
0 Untitled_design_-_2026-01-22T020231.200.jpg 600 600 N N N 44118 11142 product 34289 M 5 34289
0 Untitled_design_-_2026-01-22T024050.059.jpg 600 600 N N N 44159 11146 product 34325 M 5 34325
0 Untitled_design_-_2026-01-28T010550.134.jpg 600 600 N N N 45610 11419 product 35408 M 5 35408
0 Untitled_design_-_2026-01-28T010935.820.jpg 600 600 N N N 45620 11420 product 35413 M 5 35413
0 Untitled_design_-_2026-01-28T104120.822.jpg 600 600 N N N 45680 11427 product 35448 M 5 35448
0 Untitled_design_-_2026-01-28T104427.538.jpg 600 600 N N N 45690 11428 product 35453 M 5 35453
0 Untitled_design_-_2026-01-28T104713.577.jpg 600 600 N N N 45700 11429 product 35458 M 5 35458
0 image_2026-02-01_190157158.png 600 600 N N N 46556 11553 product 36026 M 5 36026
0 image_2026-02-05_140714427.png 600 600 N N N 46844 11638 product 36272 M 5 36272
0 Untitled_design_-_2026-01-28T011841.596.jpg 600 600 N N N 45630 11421 product 35418 M 6 35418