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 (
    '29762', '29763', '29764', '29765', 
    '29766', '29767', '29768', '29769', 
    '29770', '29771', '29772', '29773', 
    '29774', '29775', '29776', '29777'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00126

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "179.21"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "34.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": 34,
            "rows_produced_per_join": 34,
            "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 ('29762','29763','29764','29765','29766','29767','29768','29769','29770','29771','29772','29773','29774','29775','29776','29777')))",
            "cost_info": {
              "read_cost": "56.81",
              "eval_cost": "6.80",
              "prefix_cost": "63.61",
              "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": 34,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "34.00",
              "eval_cost": "6.80",
              "prefix_cost": "104.41",
              "data_read_per_join": "26K"
            },
            "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": 34,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "34.00",
              "eval_cost": "6.80",
              "prefix_cost": "145.21",
              "data_read_per_join": "20K"
            },
            "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 31ZMVKecIFL.jpg 500 396 N 46607 29767 product 48569 M 0 48569
0 31owDSEroqL.jpg 468 500 N 46623 29765 product 48585 M 0 48585
0 41hSDKYgrNL.jpg 496 500 N 46635 29764 product 48597 M 0 48597
0 51urspW-aAL._SL1059_.jpg 1059 810 N 46663 29763 product 48625 M 0 48625
0 41RKMg2Gx2L.jpg 500 425 N 46683 29762 product 48645 M 0 48645
0 513CBi639nL._SL1000_.jpg 1000 1000 N 47655 29777 product 49616 M 0 49616
0 41gaXgoAslL.jpg 500 468 N 47656 29775 product 49617 M 0 49617
0 712dHPKQ7GL._SL1500_.jpg 1500 1500 N 47657 29774 product 49618 M 0 49618
0 41PFgJszTNL.jpg 500 500 N 47659 29773 product 49620 M 0 49620
0 51Z6uWFGnpL.jpg 497 500 N 47660 29772 product 49621 M 0 49621
0 413Xbg6vYsL.jpg 499 500 N 47661 29771 product 49622 M 0 49622
0 51JTjkQ6efL.jpg 439 500 N 47662 29770 product 49623 M 0 49623
0 41j8sggALsL.jpg 473 500 N 47663 29769 product 49624 M 0 49624
0 41L_ph_Kt0L.jpg 500 457 N 47664 29768 product 49625 M 0 49625
0 411ckxmRrkL.jpg 500 494 N 47665 29766 product 49626 M 0 49626
0 395a95e3-66ba-4861-b659-cc3554a44659_1.6ce2daaae78fe377067f8a76aef791bc.jpeg 1000 1000 N 57048 29776 product 59008 M 0 59008