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 (
    2121, 2123, 2122, 2120, 2125, 2124, 2115, 
    2116, 2114, 2117, 2112, 2110, 2109, 
    2111, 2107, 2106, 2105, 2108, 2091, 
    2092, 2068
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00161

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "74.06"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "32.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": 32,
            "rows_produced_per_join": 32,
            "filtered": "100.00",
            "index_condition": "((`wearethehelpful_scalesta_net`.`cscart_images_links`.`object_type` = 'product') and (`wearethehelpful_scalesta_net`.`cscart_images_links`.`type` = 'M') and (`wearethehelpful_scalesta_net`.`cscart_images_links`.`object_id` in (2121,2123,2122,2120,2125,2124,2115,2116,2114,2117,2112,2110,2109,2111,2107,2106,2105,2108,2091,2092,2068)))",
            "cost_info": {
              "read_cost": "16.46",
              "eval_cost": "3.20",
              "prefix_cost": "19.66",
              "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": [
              "wearethehelpful_scalesta_net.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 32,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "8.00",
              "eval_cost": "3.20",
              "prefix_cost": "30.86",
              "data_read_per_join": "24K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y",
              "is_high_res"
            ]
          }
        },
        {
          "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": [
              "wearethehelpful_scalesta_net.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 32,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "8.00",
              "eval_cost": "3.20",
              "prefix_cost": "42.06",
              "data_read_per_join": "19K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ]
          }
        }
      ]
    }
  }
}

Result

image_id image_path image_x image_y is_high_res pair_id object_id object_type detailed_id type position alt images_image_id
0 summersale_jy16-29.jpg 600 450 N 45548 2091 product 14305 M 0 14305
0 summersale_jy16-29.jpg 600 450 N 45549 2092 product 14305 M 0 14305
0 badge-3_0954e929-3dfb-48bf-aa30-a7e472f89e3c.jpg 600 600 N 45639 2105 product 14371 M 0 14371
0 badge-3_0954e929-3dfb-48bf-aa30-a7e472f89e3c.jpg 600 600 N 45649 2107 product 14371 M 0 14371
0 badge-3_0954e929-3dfb-48bf-aa30-a7e472f89e3c.jpg 600 600 N 45650 2108 product 14371 M 0 14371
0 Screenshotfrom2026-02-1812-36-55.png 522 151 N 45652 2110 product 14374 M 0 14374
0 Screenshotfrom2026-02-1812-36-55.png 522 151 N 45653 2111 product 14374 M 0 14374
0 Screenshotfrom2026-02-1812-36-55.png 522 151 N 45654 2112 product 14374 M 0 14374
0 tsirt_e0bea14c-d11e-4d36-8089-61f29bdbe31d.jpg 184 148 N 45686 2115 product 14405 M 0 14405
0 tsirt_e0bea14c-d11e-4d36-8089-61f29bdbe31d.jpg 184 148 N 45687 2116 product 14405 M 0 14405
0 tsirt_e0bea14c-d11e-4d36-8089-61f29bdbe31d.jpg 184 148 N 45688 2117 product 14405 M 0 14405
0 badge-3_0954e929-3dfb-48bf-aa30-a7e472f89e3c_nso9-ao.jpg 600 600 N 45931 2106 product 14648 M 0 14648
0 Screenshotfrom2026-02-1812-36-55_gta8-s0.png 522 151 N 45934 2109 product 14651 M 0 14651
0 tsirt_e0bea14c-d11e-4d36-8089-61f29bdbe31d_33va-oi.jpg 184 148 N 45935 2114 product 14652 M 0 14652
0 icon__1_.png 1000 1000 N 45397 2068 product 14190 M 1 14190