SELECT 
  q_images.*, 
  q_images_links.*, 
  q_common_descriptions.description AS alt, 
  q_images.image_id AS images_image_id 
FROM 
  q_images_links 
  LEFT JOIN q_images ON q_images_links.detailed_id = q_images.image_id 
  LEFT JOIN q_common_descriptions ON q_common_descriptions.object_id = q_images.image_id 
  AND q_common_descriptions.object_holder = 'images' 
  AND q_common_descriptions.lang_code = 'en' 
WHERE 
  q_images_links.object_type = 'product' 
  AND q_images_links.type = 'M' 
  AND q_images_links.object_id IN (
    '40981', '40982', '40983', '40984', 
    '40985', '40986', '40987', '40988', 
    '40989', '40990', '40991', '40992', 
    '40993', '40994', '40995', '40996', 
    '40997', '40998', '40999', '41000', 
    '41001', '41002', '41003', '41004', 
    '41005', '41006', '41007', '41008', 
    '41009', '41010', '41011', '41012'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00178

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "281.61"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "52.00"
      },
      "nested_loop": [
        {
          "table": {
            "table_name": "q_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": 52,
            "rows_produced_per_join": 52,
            "filtered": "100.00",
            "index_condition": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'M') and (`portal`.`q_images_links`.`object_id` in ('40981','40982','40983','40984','40985','40986','40987','40988','40989','40990','40991','40992','40993','40994','40995','40996','40997','40998','40999','41000','41001','41002','41003','41004','41005','41006','41007','41008','41009','41010','41011','41012')))",
            "cost_info": {
              "read_cost": "94.41",
              "eval_cost": "10.40",
              "prefix_cost": "104.81",
              "data_read_per_join": "4K"
            },
            "used_columns": [
              "pair_id",
              "object_id",
              "object_type",
              "image_id",
              "detailed_id",
              "type",
              "position"
            ]
          }
        },
        {
          "table": {
            "table_name": "q_images",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "image_id"
            ],
            "key_length": "4",
            "ref": [
              "portal.q_images_links.detailed_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 52,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "52.00",
              "eval_cost": "10.40",
              "prefix_cost": "167.21",
              "data_read_per_join": "39K"
            },
            "used_columns": [
              "image_id",
              "image_path",
              "image_x",
              "image_y",
              "is_high_res"
            ],
            "attached_condition": "<if>(is_not_null_compl(q_images), (`portal`.`q_images_links`.`detailed_id` = `portal`.`q_images`.`image_id`), true)"
          }
        },
        {
          "table": {
            "table_name": "q_common_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "lang_code",
              "object_holder"
            ],
            "key_length": "107",
            "ref": [
              "portal.q_images.image_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 52,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "52.00",
              "eval_cost": "10.40",
              "prefix_cost": "229.61",
              "data_read_per_join": "30K"
            },
            "used_columns": [
              "object_id",
              "description",
              "lang_code",
              "object_holder"
            ],
            "attached_condition": "<if>(is_not_null_compl(q_common_descriptions), (`portal`.`q_common_descriptions`.`object_id` = `portal`.`q_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 10231491559474.jpg 280 413 N 66409 40982 product 68360 M 0 68360
0 images.jpg 225 225 N 66410 40983 product 68361 M 0 68361
0 447995748_tn50_0.jpg 500 500 N 66411 40984 product 68362 M 0 68362
0 Product-24795.jpg 1000 1000 N 66412 40985 product 68363 M 0 68363
0 Product-24797.jpg 1000 1000 N 66413 40986 product 68364 M 0 68364
0 3643696_9359.jpg 1080 720 N 66414 40987 product 68365 M 0 68365
0 9613066338354.jpg 432 432 N 66415 40988 product 68366 M 0 68366
0 3643698_1199.jpg 1080 720 N 66416 40989 product 68367 M 0 68367
0 11525439024570-Daniel-Klein-Men-Wayfarer-Sunglasses-2771525439024496-1.jpg 420 560 N 66417 40990 product 68368 M 0 68368
0 11525502298456-Daniel-Klein-Men-Wayfarer-Sunglasses-8631525502298350-1.jpg 420 560 N 66418 40991 product 68369 M 0 68369
0 N15031259A_1.jpg 800 1091 N 66419 40992 product 68370 M 0 68370
0 res_fd9f9fb8958096abaf9fcb418504d665_full.jpg 1000 1000 N 66421 40994 product 68372 M 0 68372
0 daniel-klein-dk3053-7-damla-model-polarize-erkek-gunes-gozlugu__1305766765327685.jpg 450 450 N 66422 40995 product 68373 M 0 68373
0 daniel-klein-dk3073c1-erkek-gunes-gozlugu-kc359489-1-1.jpg 3242 3567 N 66423 40996 product 68374 M 0 68374
0 N15031261A_1.jpg 800 1091 N 66424 40997 product 68375 M 0 68375
0 3643678_96e6.jpg 1080 720 N 66425 40998 product 68376 M 0 68376
0 DK3074_Z_1.jpg 660 700 N 66427 41000 product 68378 M 0 68378
0 10231492608050.jpg 600 600 N 66428 41001 product 68379 M 0 68379
0 3643569_28c5.jpg 1080 720 N 66429 41002 product 68380 M 0 68380
0 DK3074BCOL06.jpg 730 730 N 66430 41003 product 68381 M 0 68381
0 71JGAxWcNfL._UL1500_.jpg 1500 847 N 66431 41004 product 68382 M 0 68382
0 51lGzGO1YHL._UY879_.jpg 659 879 N 66432 41005 product 68383 M 0 68383
0 71Eao2H_KLL._UL1500_.jpg 1500 853 N 66433 41007 product 68384 M 0 68384
0 71h9Letuf8L._UL1500_.jpg 1500 864 N 66434 41008 product 68385 M 0 68385
0 N18629425A_1.jpg 800 1091 N 66435 41009 product 68386 M 0 68386
0 N18629426A_1.jpg 800 1091 N 66436 41010 product 68387 M 0 68387
0 20190206135337_daniel_klein_dk3110_c5.jpeg 478 294 N 66437 41011 product 68388 M 0 68388
0 20190402144843_daniel_klein_dk3110_c6.jpeg 488 297 N 66438 41012 product 68389 M 0 68389
0 N18629423A_1.jpg 800 1091 N 66819 41006 product 68770 M 0 68770
0 erkek-gunes-gozlugu-DK1087C1.jpg 1500 1000 N 67442 40993 product 69393 M 0 69393
0 2_cdk7-qm.jpg 640 626 N 68197 40999 product 70148 M 0 70148
0 2_iaox-4c.jpg 640 626 N 82089 40981 product 84032 M 0 84032