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 = 'A' 
  AND q_images_links.object_id IN (
    '10030', '10031', '10032', '10033', 
    '10034', '10035', '10036', '10037', 
    '10038', '10041', '10042', '10043', 
    '10045', '10046', '10048', '10049'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00167

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "164.81"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "31.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": 31,
            "rows_produced_per_join": 31,
            "filtered": "100.00",
            "index_condition": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'A') and (`portal`.`q_images_links`.`object_id` in ('10030','10031','10032','10033','10034','10035','10036','10037','10038','10041','10042','10043','10045','10046','10048','10049')))",
            "cost_info": {
              "read_cost": "53.21",
              "eval_cost": "6.20",
              "prefix_cost": "59.41",
              "data_read_per_join": "2K"
            },
            "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": 31,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "31.00",
              "eval_cost": "6.20",
              "prefix_cost": "96.61",
              "data_read_per_join": "23K"
            },
            "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": 31,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "31.00",
              "eval_cost": "6.20",
              "prefix_cost": "133.81",
              "data_read_per_join": "18K"
            },
            "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 61CgJx9g04L._SL1000_.jpg 1000 1000 N 18549 10033 product 20511 A 1 20511
0 41H3wVLGxmL._SL1000_.jpg 1000 1000 N 18585 10045 product 20547 A 1 20547
0 2-mi-bluetooth-speaker-red.png 450 350 N 18645 10037 product 20607 A 1 20607
0 61LYRm1ik2L._SL1500__pjho-xe.jpg 1500 1500 N 85017 10043 product 20631 A 1 20631
0 410ySkBfwYL._SL1000__1dhl-o2.jpg 1000 1000 N 85021 10046 product 20635 A 1 20635
0 61gsgjuphzl._sl1200_.jpg 1200 1200 N 85023 10041 product 20684 A 1 20684
0 5114gWxeiiL._SL1000_.jpg 1000 1000 N 18550 10033 product 20512 A 2 20512
0 31ak945mYiL.jpg 500 500 N 18586 10045 product 20548 A 2 20548
0 618RBFo9SiL._SL1500__1p8g-kp.jpg 1500 1500 N 85018 10043 product 20632 A 2 20632
0 51gWSWjvhUL.jpg 500 500 N 85024 10041 product 20685 A 2 20685
0 thumb_d_gallery_8492e33b.jpg 800 800 N 18646 10037 product 20608 A 3 20608
0 61NP8C3OqQL._SL1500__01h9-j7.jpg 1500 1500 N 85019 10043 product 20633 A 3 20633
0 mi-bluetooth-speaker-speaker-bluetooth-2x3w-rosso.jpg 669 801 N 18647 10037 product 20609 A 4 20609
0 e531a61163325cd0adc70f224d6e455f85d422d3_Xiaomi_001.jpg 480 480 N 18537 10030 product 20499 A 10 20499
0 31SR7f_A-jL.jpg 500 500 N 18540 10031 product 20502 A 10 20502
0 311wvE-RkqL.jpg 500 500 N 18545 10032 product 20507 A 10 20507
0 31fA0zou9hL.jpg 371 500 N 18552 10034 product 20514 A 10 20514
0 41YrUtRWTSL.jpg 500 500 N 18554 10035 product 20516 A 10 20516
0 612x3LcfNeL._SL1000_.jpg 1000 1000 N 18561 10038 product 20523 A 10 20523
0 714BTmseJ-L._SL1500_.jpg 1500 563 N 18572 10042 product 20534 A 10 20534
0 719TRP7uhfL._SL1128_.jpg 1128 1128 N 18592 10048 product 20554 A 10 20554
0 31WARSVkTIL.jpg 500 500 N 18596 10049 product 20558 A 10 20558
0 df09612732cc2d0cf5e6ad14ec205f39ce31240b_Xiaomi_001.jpg 441 441 N 18538 10030 product 20500 A 20 20500
0 41qU8TDNisL.jpg 500 500 N 18541 10031 product 20503 A 20 20503
0 31Kk5eRnrTL.jpg 500 500 N 18546 10032 product 20508 A 20 20508
0 41nZYN1t5JL.jpg 500 500 N 18555 10035 product 20517 A 20 20517
0 71oab1MTuDL._SL1500_.jpg 1500 750 N 18573 10042 product 20535 A 20 20535
0 61YPs7sy3GL._SL1500_.jpg 1500 480 N 18593 10048 product 20555 A 20 20555
0 31Z6lCQldkL.jpg 500 500 N 18597 10049 product 20559 A 20 20559
0 419QwrJYmaL.jpg 500 500 N 18542 10031 product 20504 A 30 20504
0 31QqUQ9zQ_L.jpg 500 287 N 18547 10032 product 20509 A 30 20509
0 41iLh0M3-wL._SL1000_.jpg 1000 1000 N 18556 10035 product 20518 A 30 20518
0 71WAHtMvGCL._SL1500_.jpg 1500 844 N 18574 10042 product 20536 A 30 20536
0 61PgtOxbnGL._SL1500_.jpg 1500 595 N 18594 10048 product 20556 A 30 20556
0 31DwYH1QrsL.jpg 500 481 N 18598 10049 product 20560 A 30 20560
0 41R3MCfnTcL.jpg 500 500 N 18543 10031 product 20505 A 40 20505
0 41cVx32dIGL._SL1000_.jpg 1000 668 N 18548 10032 product 20510 A 40 20510
0 51ksDlDaeLL._SL1092_.jpg 790 1092 N 18557 10035 product 20519 A 40 20519
0 71kIOr0rh9L._SL1440_.jpg 1280 1440 N 18575 10042 product 20537 A 40 20537
0 31W27suT7iL.jpg 500 481 N 18599 10049 product 20561 A 40 20561
0 81mH4ghPisL._SL1500_.jpg 1500 844 N 18576 10042 product 20538 A 50 20538
0 71eRYS9KOAL._SL1440_.jpg 1280 1440 N 18577 10042 product 20539 A 60 20539