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 = 'A' 
  AND cscart_images_links.object_id IN (
    39122, 58631, 32931, 39119, 39124, 39123, 
    23659, 34973
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00107

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "71.98"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "24.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_images_links",
            "access_type": "range",
            "possible_keys": [
              "object_id",
              "idx_object_type_type_position"
            ],
            "key": "object_id",
            "used_key_parts": [
              "object_id",
              "object_type",
              "type"
            ],
            "key_length": "81",
            "rows_examined_per_scan": 24,
            "rows_produced_per_join": 24,
            "filtered": "100.00",
            "index_condition": "((`cscart_db`.`cscart_images_links`.`object_type` = 'product') and (`cscart_db`.`cscart_images_links`.`type` = 'A') and (`cscart_db`.`cscart_images_links`.`object_id` in (39122,58631,32931,39119,39124,39123,23659,34973)))",
            "cost_info": {
              "read_cost": "17.51",
              "eval_cost": "2.40",
              "prefix_cost": "19.91",
              "data_read_per_join": "2K"
            },
            "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": [
              "cscart_db.cscart_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 24,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "13.31",
              "eval_cost": "2.40",
              "prefix_cost": "35.61",
              "data_read_per_join": "18K"
            },
            "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": "107",
            "ref": [
              "cscart_db.cscart_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 24,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "9.97",
              "eval_cost": "2.40",
              "prefix_cost": "47.98",
              "data_read_per_join": "14K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ],
            "attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`cscart_db`.`cscart_common_descriptions`.`object_id` = `cscart_db`.`cscart_images`.`image_id`), true)"
          }
        }
      ]
    }
  }
}

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 iUNIK_Centella_Calming_Daily_Sunscreen_Visual_01_crop.jpg 927 1080 N 133043 32931 product 134395 A 1 134395
0 Tea_Tree_Relief_Serum_50ml_Visual_Image_02.jpg 3852 2958 N 170495 39119 product 171844 A 1 171844
0 294_eef93cb2-8d5a-4aeb-b0af-fd6d0bd83bc4.png 800 800 N 171459 58631 product 172805 A 1 172805
0 Iunik_signed_page-0001_rzot-vb.jpg 1241 1754 N 173389 23659 product 174735 A 1 174735
0 Iunik_signed_page-0001_jvje-2z.jpg 1241 1754 N 173400 39122 product 174746 A 1 174746
0 iUNIK_Centella_Calming_Daily_Sunscreen_Visual_01.jpg 824 1080 N 133044 32931 product 134396 A 2 134396
0 Tea_Tree_Relief_Toner_200ml_Visual_01__Medium_.jpg 1152 768 N 170513 39123 product 171862 A 2 171862
0 IUnik1__1__5c4o-df.jpg 1500 1500 N 188496 34973 product 189834 A 2 189834
0 iUNIK_Centella_Calming_Daily_Sunscreen_Visual_07.jpg 1440 1080 N 133045 32931 product 134397 A 3 134397
0 Tea_Tree_Relief_Serum_50ml_Visual_Image_06__Medium_.jpg 1152 768 N 170497 39119 product 171846 A 3 171846
0 Tea_Tree_Relief_Toner_200ml_Visual_06__Medium_.jpg 1059 768 N 170514 39123 product 171863 A 3 171863
0 iUNIK_Centella_Calming_Daily_Sunscreen_Visual_03_42f6-2j.jpg 1080 1080 N 188497 34973 product 189835 A 3 189835
0 iUNIK_Centella_Calming_Daily_Sunscreen_Visual_08.jpg 1667 1080 N 133046 32931 product 134398 A 4 134398
0 Tea_Tree_Relief_Serum_50ml_Visual_Image_08__Medium_.jpg 1152 768 N 170496 39119 product 171845 A 4 171845
0 01_[iUNIK]_Tea_Tree_Relief_Toner_200ml_visual_hand__Medium_.jpg 768 1028 N 170516 39123 product 171865 A 4 171865
0 iUNIK_Centella_Calming_Daily_Sunscreen_Visual_06.jpg 1440 1080 N 133047 32931 product 134399 A 5 134399
0 Tea_Tree_Relief_Serum_50ml_Visual_Image_09__Medium_.jpg 1155 768 N 170498 39119 product 171847 A 5 171847
0 Tea_Tree_Relief_Toner_200ml_Visual_Summer_01__Medium_.jpg 768 768 N 170515 39123 product 171864 A 5 171864
0 iUNIK_Centella_Calming_Daily_Sunscreen_Visual_04.jpg 1440 1080 N 133048 32931 product 134400 A 6 134400
0 Iunik_signed_page-0001_pxva-st.jpg 1241 1754 N 173397 39119 product 174743 A 6 174743
0 Iunik_signed_page-0001_ze6d-qp.jpg 1241 1754 N 173401 39123 product 174747 A 6 174747
0 iUNIK_Centella_Calming_Daily_Sunscreen_Visual_09.jpg 1898 1080 N 133049 32931 product 134401 A 7 134401
0 Iunik_signed_page-0001_8haa-uu.jpg 1241 1754 N 173393 32931 product 174739 A 8 174739
0 Iunik_signed_page-0001_cfeq-pv.jpg 1241 1754 N 173402 39124 product 174748 A 11 174748