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 (
    '34239', '34249', '34250', '34262', 
    '34349', '34469', '34487', '34538', 
    '2464', '2465', '2466', '2467', '2469', 
    '1175', '1176', '1177', '1178', '1179', 
    '1180', '1181', '1182', '1183', '1184', 
    '1191', '1011', '1010', '1009', '999', 
    '998', '997', '975', '958'
  ) 
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": "267.21"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "49.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": 49,
            "rows_produced_per_join": 49,
            "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 ('34239','34249','34250','34262','34349','34469','34487','34538','2464','2465','2466','2467','2469','1175','1176','1177','1178','1179','1180','1181','1182','1183','1184','1191','1011','1010','1009','999','998','997','975','958')))",
            "cost_info": {
              "read_cost": "90.81",
              "eval_cost": "9.80",
              "prefix_cost": "100.61",
              "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": 49,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "49.00",
              "eval_cost": "9.80",
              "prefix_cost": "159.41",
              "data_read_per_join": "37K"
            },
            "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": 49,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "49.00",
              "eval_cost": "9.80",
              "prefix_cost": "218.21",
              "data_read_per_join": "29K"
            },
            "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 26db48a7a85bb1cd49c3a6bf6e2aa87e.jpg 251 593 N 2315 958 product 4291 M 0 4291
0 item_M_46218221_5876fef39507a.jpg 56 140 N 2332 975 product 4308 M 0 4308
0 86e80254f34ebdf0df0f9942fab09dd4.png 400 400 N 2356 997 product 4332 M 0 4332
0 3e72d85abfe49b16eae18af827defaa7.jpg 800 1091 N 2357 998 product 4333 M 0 4333
0 0e227d43dfdb2cd0bb08f8ee87cc8389.jpeg 450 450 N 2358 999 product 4334 M 0 4334
0 c153ffafe10fb671042387fc1a016389.jpg 800 1091 N 2369 1009 product 4345 M 0 4345
0 cca14222a4ca4fb1a547fbf7cfa5f1fb.jpg 500 500 N 2370 1010 product 4346 M 0 4346
0 33eb4411b2611d3f0843b08cec4d3ce9.jpg 500 500 N 2371 1011 product 4347 M 0 4347
0 item_M_22490382_31710443.jpg 140 140 N 2617 1175 product 4593 M 0 4593
0 item_M_22490385_65016579.jpg 96 140 N 2618 1176 product 4594 M 0 4594
0 item_M_22490380_65016571.jpg 96 140 N 2619 1177 product 4595 M 0 4595
0 item_M_12053443_147583267.jpg 92 140 N 2620 1178 product 4596 M 0 4596
0 item_M_30478192_136265621.jpg 54 140 N 2621 1179 product 4597 M 0 4597
0 item_M_30478148_136264390.jpg 88 140 N 2622 1180 product 4598 M 0 4598
0 item_M_7652038_147583302.jpg 52 140 N 2623 1181 product 4599 M 0 4599
0 item_M_7652034_8d5710aedbca2.jpg 54 140 N 2624 1182 product 4600 M 0 4600
0 item_M_11893983_17586576.jpg 101 140 N 2625 1183 product 4601 M 0 4601
0 item_M_11893982_17586575.jpg 101 140 N 2626 1184 product 4602 M 0 4602
0 item_M_46485381_6ff997ca564e0.jpg 118 140 N 2633 1191 product 4609 M 0 4609
0 item_XL_44537806_f8098bda87d97.jpg 203 600 N 5743 2464 product 7714 M 0 7714
0 item_XL_44537764_e065798b6f214.jpg 188 600 N 5744 2465 product 7715 M 0 7715
0 item_XL_35784990_139653452.jpg 247 600 N 5745 2466 product 7716 M 0 7716
0 item_XL_39118132_152595657.jpg 220 600 N 5746 2467 product 7717 M 0 7717
0 item_XL_35779504_139229383.jpg 276 600 N 5748 2469 product 7719 M 0 7719
0 c8c5f7801f6148da8d8f6b2f263a6eb1.jpg 211 600 N 55568 34239 product 57529 M 0 57529
0 409d115a7a13f52c7474015fa4e6452a.JPG 1000 1000 N 55591 34262 product 57552 M 0 57552
0 487dafd65e98cedcb6a1ce2e021104eb.jpg 800 800 N 55798 34469 product 57759 M 0 57759
0 171a72c933c22edbafd6d19e6c1e2819.jpg 733 1000 N 55867 34538 product 57828 M 0 57828
0 61OeGcSWFIL._SY355_.jpg 355 355 N 62623 34487 product 64579 M 0 64579
0 31Y_4GIiwkL._AC_.jpg 244 242 N 82832 34349 product 84775 M 0 84775
0 A1HuQujyAgL._SX355_.jpg 355 310 N 65121 34249 product 67072 M 1 67072
0 Godrej-Expert-Natural-Brown-400-Rich-Creme-Hair-Colour-1544774657-10051055.jpg 600 600 N 65122 34250 product 67073 M 1 67073