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 (
    '32517', '32518', '32520', '32522', 
    '32523', '32524', '32525', '32526', 
    '32527', '32528', '32529', '32530', 
    '32532', '32533', '32534', '32535', 
    '32537', '32538', '32539', '32540', 
    '32541', '32542', '32543', '32544', 
    '32545', '32546', '32548', '32549', 
    '32550', '32551', '32552', '32553'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00259

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "185.61"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "32.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": 32,
            "rows_produced_per_join": 32,
            "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 ('32517','32518','32520','32522','32523','32524','32525','32526','32527','32528','32529','32530','32532','32533','32534','32535','32537','32538','32539','32540','32541','32542','32543','32544','32545','32546','32548','32549','32550','32551','32552','32553')))",
            "cost_info": {
              "read_cost": "70.41",
              "eval_cost": "6.40",
              "prefix_cost": "76.81",
              "data_read_per_join": "3K"
            },
            "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": 32,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "32.00",
              "eval_cost": "6.40",
              "prefix_cost": "115.21",
              "data_read_per_join": "24K"
            },
            "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": 32,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "32.00",
              "eval_cost": "6.40",
              "prefix_cost": "153.61",
              "data_read_per_join": "19K"
            },
            "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 12579L-1-1.jpg 6000 4000 N 42605 32517 product 44567 M 0 44567
0 12579L-1P-1.jpg 6000 4000 N 42609 32518 product 44571 M 0 44571
0 12579L-2P-1.jpg 6000 4000 N 42617 32520 product 44579 M 0 44579
0 12579L-3-1.jpg 6000 4000 N 42628 32522 product 44590 M 0 44590
0 12579L-3P-1.jpg 6000 4000 N 42632 32523 product 44594 M 0 44594
0 12579L-4-1.jpg 6000 4000 N 42636 32524 product 44598 M 0 44598
0 12579L-4P-1.jpg 6000 4000 N 42639 32525 product 44601 M 0 44601
0 12579M-1-1.jpg 6000 4000 N 42643 32526 product 44605 M 0 44605
0 12579M-2-1.jpg 6000 4000 N 42647 32527 product 44609 M 0 44609
0 12579M-3-1.jpg 6000 4000 N 42651 32528 product 44613 M 0 44613
0 12579M-4-1.jpg 6000 4000 N 42655 32529 product 44617 M 0 44617
0 12580-1L-P-1.jpg 6000 4000 N 42660 32530 product 44622 M 0 44622
0 12580-1L-1.jpg 6000 4000 N 42664 32532 product 44626 M 0 44626
0 12580-1M-1.jpg 6000 4000 N 42667 32533 product 44629 M 0 44629
0 12580M-2-1.jpg 6000 4000 N 42671 32534 product 44633 M 0 44633
0 12580M-3-1.jpg 6000 4000 N 42675 32535 product 44637 M 0 44637
0 12581L-1-1.jpg 6000 4000 N 42683 32537 product 44645 M 0 44645
0 12581L-1P-1.jpg 6000 4000 N 42686 32538 product 44648 M 0 44648
0 12581L-2-1.jpg 6000 4000 N 42690 32539 product 44652 M 0 44652
0 12581L-2P-1.jpg 6000 4000 N 42693 32540 product 44655 M 0 44655
0 12581L-3-1.jpg 6000 4000 N 42697 32541 product 44659 M 0 44659
0 12581L-3P-1.jpg 6000 4000 N 42700 32542 product 44662 M 0 44662
0 12581M-1-1.jpg 6000 4000 N 42704 32543 product 44666 M 0 44666
0 12581M-2-1.jpg 6000 4000 N 42708 32544 product 44670 M 0 44670
0 12581M-3-1.jpg 6000 4000 N 42712 32545 product 44674 M 0 44674
0 12582L-1-1.jpg 6000 4000 N 42716 32546 product 44678 M 0 44678
0 12582L-1P-1.jpg 6000 4000 N 42724 32548 product 44686 M 0 44686
0 12582L-2-1.jpg 6000 4000 N 42728 32549 product 44690 M 0 44690
0 12582L-2P-1.jpg 6000 4000 N 42731 32550 product 44693 M 0 44693
0 12582L-3-1.jpg 6000 4000 N 42735 32551 product 44697 M 0 44697
0 12582L-3P-1.jpg 6000 4000 N 42738 32552 product 44700 M 0 44700
0 12582M-2-1.jpg 6000 4000 N 42742 32553 product 44704 M 0 44704