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 (
    5346, 11310, 5309, 5331, 5332, 11255, 
    11257, 11258, 11275, 11276, 11277, 
    11278, 10956, 10957, 10958, 10959, 
    10960, 11279, 11280, 11281, 11452, 
    11456, 11457, 11117, 11118, 11131, 
    11127, 11132, 11077, 11074, 11223, 
    11222, 11069, 11071, 11100, 11099
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00225

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "99.31"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "42.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": 42,
            "rows_produced_per_join": 42,
            "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 (5346,11310,5309,5331,5332,11255,11257,11258,11275,11276,11277,11278,10956,10957,10958,10959,10960,11279,11280,11281,11452,11456,11457,11117,11118,11131,11127,11132,11077,11074,11223,11222,11069,11071,11100,11099)))",
            "cost_info": {
              "read_cost": "23.71",
              "eval_cost": "4.20",
              "prefix_cost": "27.91",
              "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": 42,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "10.50",
              "eval_cost": "4.20",
              "prefix_cost": "42.61",
              "data_read_per_join": "32K"
            },
            "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": 42,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "10.50",
              "eval_cost": "4.20",
              "prefix_cost": "57.31",
              "data_read_per_join": "24K"
            },
            "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 cc__9__6fnk-an.jpg 600 600 N N Y 25405 5309 product 19223 M 0 19223
0 cc__7__mxix-ii.jpg 600 600 N N Y 25413 5331 product 19225 M 0 19225
0 cc__6__mshu-hc.jpg 600 600 N N Y 25418 5332 product 19227 M 0 19227
0 cc__11__dp6b-jp.jpg 600 600 N N Y 25441 5346 product 19243 M 0 19243
0 cc_-_2026-01-21T235310.256.jpg 600 600 N N N 43939 11117 product 34126 M 0 34126
0 cc_-_2026-01-21T235932.327.jpg 600 600 N N N 43943 11118 product 34128 M 0 34128
0 cc_-_2026-01-22T004737.393.jpg 600 600 N N N 43981 11127 product 34166 M 0 34166
0 cc_-_2026-01-22T012822.675.jpg 600 600 N N N 44039 11131 product 34220 M 0 34220
0 cc_-_2026-01-22T013042.257.jpg 600 600 N N N 44046 11132 product 34227 M 0 34227
0 cc_-_2026-01-24T002240.839.jpg 600 600 N N N 44396 11222 product 34536 M 0 34536
0 cc_-_2026-01-24T002429.201.jpg 600 600 N N N 44404 11223 product 34539 M 0 34539
0 cc_-_2026-01-24T182800.668.jpg 600 600 N N N 44652 11275 product 34756 M 0 34756
0 cc_-_2026-01-24T195422.375.jpg 600 600 N N N 44700 11279 product 34768 M 0 34768
0 cc_-_2026-01-25T104946.557.jpg 600 600 N N N 44878 11310 product 34896 M 0 34896
0 image_2026-01-26_210031433.png 600 600 N N N 45150 10956 product 35079 M 0 35079
0 image_2026-01-26_210125199.png 600 600 N N N 45151 10957 product 35080 M 0 35080
0 image_2026-01-26_210223173.png 600 600 N N N 45152 10958 product 35081 M 0 35081
0 image_2026-01-26_210253879.png 600 600 N N N 45153 10959 product 35082 M 0 35082
0 image_2026-01-26_210323767.png 600 600 N N N 45154 10960 product 35083 M 0 35083
0 image_2026-01-26_213545391.png 600 600 N N N 45195 11069 product 35114 M 0 35114
0 image_2026-01-26_213652122.png 600 600 N N N 45196 11071 product 35115 M 0 35115
0 image_2026-01-26_214023974.png 600 600 N N N 45198 11077 product 35117 M 0 35117
0 image_2026-01-26_214105978.png 600 600 N N N 45200 11074 product 35119 M 0 35119
0 image_2026-01-26_220013362.png 600 600 N N N 45208 11099 product 35127 M 0 35127
0 image_2026-01-26_220103633.png 600 600 N N N 45209 11100 product 35128 M 0 35128
0 image_2026-01-26_231605181.png 600 600 N N N 45219 11257 product 35138 M 0 35138
0 image_2026-01-26_231715426.png 600 600 N N N 45220 11255 product 35139 M 0 35139
0 image_2026-01-26_231816162.png 600 600 N N N 45221 11258 product 35140 M 0 35140
0 cc_-_2026-01-29T001354.379.jpg 600 600 N N N 45828 11452 product 35546 M 0 35546
0 cc_-_2026-01-24T194100.842.jpg 600 600 N N N 44706 11280 product 34770 M 2 34770
0 cc_-_2026-01-24T183205.407.jpg 600 600 N N N 44672 11278 product 34759 M 3 34759
0 cc_-_2026-01-29T003137.842.jpg 600 600 N N N 45851 11456 product 35548 M 3 35548
0 cc_-_2026-01-24T201408.365.jpg 600 600 N N N 44713 11281 product 34772 M 5 34772
0 cc_-_2026-01-29T003318.436.jpg 600 600 N N N 45856 11457 product 35550 M 5 35550
0 cc_-_2026-01-24T184347.979.jpg 600 600 N N N 44679 11276 product 34762 M 6 34762
0 cc_-_2026-01-24T184923.412.jpg 600 600 N N N 44689 11277 product 34765 M 9 34765