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 (
    6098, 6100, 6101, 6102, 6103, 6104, 6105, 
    6106, 6107, 6108, 6109
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00126

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "26.41"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "11.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": 11,
            "rows_produced_per_join": 11,
            "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 (6098,6100,6101,6102,6103,6104,6105,6106,6107,6108,6109)))",
            "cost_info": {
              "read_cost": "6.61",
              "eval_cost": "1.10",
              "prefix_cost": "7.71",
              "data_read_per_join": "1K"
            },
            "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": 11,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "2.75",
              "eval_cost": "1.10",
              "prefix_cost": "11.56",
              "data_read_per_join": "8K"
            },
            "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": 11,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "2.75",
              "eval_cost": "1.10",
              "prefix_cost": "15.41",
              "data_read_per_join": "6K"
            },
            "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 30_-_2025-10-02T135135.556.jpg 600 600 N N Y 28522 6098 product 21327 M 0 21327
0 30_-_2025-10-02T140504.344_7x72-on.jpg 600 600 N N Y 28527 6100 product 21331 M 0 21331
0 41MJvky4teL._UF1000,1000_QL80_.jpg 1000 1000 N N Y 28541 6105 product 21333 M 0 21333
0 41w5iAUjoTL._UF1000,1000_QL80_.jpg 1000 1000 N N Y 28550 6106 product 21334 M 0 21334
0 61uVib89WuL._UF894,1000_QL80_.jpg 894 894 N N Y 28556 6104 product 21335 M 0 21335
0 61vzKyZLBZL._UF894,1000_QL80_.jpg 894 894 N N Y 28568 6108 product 21336 M 0 21336
0 416q0O3pYxL._UF1000,1000_QL80_.jpg 1000 1000 N N Y 28571 6103 product 21337 M 0 21337
0 MA7G4.jpeg 1144 1144 N N Y 28578 6102 product 21338 M 0 21338
0 MA7H4.jpeg 1144 1144 N N Y 28593 6109 product 21339 M 0 21339
0 MA7J4.jpeg 4000 4000 N N Y 28599 6107 product 21340 M 0 21340
0 30_-_2025-10-02T142635.642.jpg 600 600 N N Y 28529 6101 product 21332 M 1 21332