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 (
    '32622', '32623', '32624', '32625', 
    '32626', '32627', '32628', '32629', 
    '32630', '32631', '32632', '32633', 
    '32634', '32635', '32636', '32637', 
    '32638', '32639', '32640', '32641', 
    '32642', '32643', '32644', '32645', 
    '32646', '32647', '32648', '32649', 
    '32650', '32651', '32652', '32653'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00234

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 ('32622','32623','32624','32625','32626','32627','32628','32629','32630','32631','32632','32633','32634','32635','32636','32637','32638','32639','32640','32641','32642','32643','32644','32645','32646','32647','32648','32649','32650','32651','32652','32653')))",
            "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 25149L-1-1.jpg 6000 4000 N 43015 32623 product 44977 M 0 44977
0 25149L-1P-1.jpg 4983 3246 N 43018 32624 product 44980 M 0 44980
0 25149L-2-1.jpg 6000 4000 N 43022 32625 product 44984 M 0 44984
0 25149L-3-1.jpg 6000 4000 N 43029 32627 product 44991 M 0 44991
0 25149L-3P-1.jpg 6000 3486 N 43032 32628 product 44994 M 0 44994
0 25149L-4-1.jpg 6000 4000 N 43036 32629 product 44998 M 0 44998
0 25149L-4P-1.jpg 6000 4000 N 43039 32630 product 45001 M 0 45001
0 25150L-1-1.jpg 6000 4000 N 43059 32635 product 45021 M 0 45021
0 25150L-1P-1.jpg 6000 4000 N 43062 32636 product 45024 M 0 45024
0 25150L-2P-1.jpg 6000 4000 N 43069 32638 product 45031 M 0 45031
0 25150L-3-1.jpg 6000 4000 N 43073 32639 product 45035 M 0 45035
0 25150L-3P-1.jpg 6000 4000 N 43076 32640 product 45038 M 0 45038
0 25150L-4-1.jpg 6000 4000 N 43080 32641 product 45042 M 0 45042
0 25150L-5P-1.jpg 6000 4000 N 43090 32644 product 45052 M 0 45052
0 25152L-3-1.jpg 6000 4000 N 43121 32652 product 45083 M 0 45083
0 25152L-3P-1.jpg 6000 4000 N 43124 32653 product 45086 M 0 45086
0 25149L-2P-2.jpg 6000 4000 N 43026 32626 product 44988 M 10 44988
0 25150L-2-2.jpg 6000 4000 N 43067 32637 product 45029 M 10 45029
0 25150L-4P-2.jpg 6000 4000 N 43084 32642 product 45046 M 10 45046
0 25150L-5-1.jpg 6000 4000 N 43088 32643 product 45050 M 10 45050
0 25150M-1-2.jpg 6000 4000 N 43095 32645 product 45057 M 10 45057
0 25150M-2-2.jpg 6000 4000 N 43099 32646 product 45061 M 10 45061
0 25150M-4-2.jpg 6000 4000 N 43107 32648 product 45069 M 10 45069
0 25152L-1P-2.jpg 6000 4000 N 43118 32651 product 45080 M 10 45080
0 25150M-3-2.jpg 6000 4000 N 44694 32647 product 46656 M 10 46656
0 25152L-1-2.jpg 6000 4000 N 44707 32650 product 46669 M 10 46669
0 25149M-1-3.jpg 6000 4000 N 43045 32631 product 45007 M 20 45007
0 25149M-2-3.jpg 6000 4000 N 43049 32632 product 45011 M 20 45011
0 25149M-3-3.jpg 6000 4000 N 43053 32633 product 45015 M 20 45015
0 25150M-5-3.jpg 6000 4000 N 43112 32649 product 45074 M 20 45074
0 25149M-4-3.jpg 6000 4000 N 44651 32634 product 46613 M 20 46613
0 25140M-2-4.jpg 6000 4000 N 44611 32622 product 46573 M 30 46573