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 (
    '9725', '9726', '9727', '9728', '9729', 
    '9730', '9731', '9732', '9733', '9734', 
    '9735', '9736', '9737', '9738', '9739', 
    '9740'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00206

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` = 'A') and (`portal`.`q_images_links`.`object_id` in ('9725','9726','9727','9728','9729','9730','9731','9732','9733','9734','9735','9736','9737','9738','9739','9740')))",
            "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 01__63147_zoom.jpg 1280 1280 N 25961 9740 product 27923 A 1 27923
0 MSHI-L-022145_3_1024x.jpg 1024 1024 N 25965 9739 product 27927 A 1 27927
0 03_f1g2-s1.jpg 1600 1600 N 25968 9737 product 27930 A 1 27930
0 81R-2a19iLL._SL1500_.jpg 1500 1500 N 25971 9736 product 27933 A 1 27933
0 skucomponent_ae6f315b89c2448a80baa2685df03e75..jpg 970 600 N 25974 9735 product 27936 A 1 27936
0 02_dtwk-ir.jpg 1600 1600 N 25976 9734 product 27938 A 1 27938
0 y.jpg 1024 1024 N 25980 9733 product 27942 A 1 27942
0 02_ey5w-ar.jpg 1600 1600 N 25986 9732 product 27948 A 1 27948
0 03_2cuz-2b.jpg 1600 1600 N 25989 9731 product 27951 A 1 27951
0 04_ndqv-5a.jpg 1600 1600 N 25992 9730 product 27954 A 1 27954
0 03_nuxo-vl.jpg 1600 1600 N 25995 9729 product 27957 A 1 27957
0 02_jq5h-a7.jpg 1600 1600 N 25996 9727 product 27958 A 1 27958
0 04_136g-fz.jpg 1600 1600 N 25999 9726 product 27961 A 1 27961
0 05_y22s-m0.jpg 1600 1600 N 26002 9725 product 27964 A 1 27964
0 71nO5AiGENL._SL1500_.jpg 1500 1500 N 25962 9740 product 27924 A 2 27924
0 MSHI-L-022145_2_1024x.jpg 1024 1024 N 25966 9739 product 27928 A 2 27928
0 61hVF1Mv67L._SX679_.jpg 679 679 N 25967 9738 product 27929 A 2 27929
0 04_4j9u-8a.jpg 1600 1600 N 25969 9737 product 27931 A 2 27931
0 713veWFKO2L._SL1500_.jpg 1500 1500 N 25972 9736 product 27934 A 2 27934
0 04_dqhn-b0.jpg 1600 1600 N 25975 9735 product 27937 A 2 27937
0 yy.jpg 1024 1024 N 25981 9733 product 27943 A 2 27943
0 04_6jgh-cr.jpg 1600 1600 N 25987 9732 product 27949 A 2 27949
0 04_cdcz-ce.jpg 1600 1600 N 25990 9731 product 27952 A 2 27952
0 05_jsll-x6.jpg 720 1080 N 25993 9730 product 27955 A 2 27955
0 05_v6jf-6b.jpg 1600 1600 N 25997 9727 product 27959 A 2 27959
0 05_hrsa-9q.jpg 1600 1600 N 26000 9726 product 27962 A 2 27962
0 03_ifni-vc.jpg 1600 1600 N 26003 9725 product 27965 A 2 27965
0 61VNI31eYaL._SL1500_.jpg 1500 1500 N 25963 9740 product 27925 A 3 27925
0 02_y0b4-ed.jpg 1600 1600 N 25970 9737 product 27932 A 3 27932
0 81WZjnHQldL._SL1500_.jpg 1500 1500 N 25973 9736 product 27935 A 3 27935
0 03_vj32-uu.jpg 1600 1600 N 25978 9734 product 27940 A 3 27940
0 yyy.jpg 1024 1024 N 25982 9733 product 27944 A 3 27944
0 05_wi42-02.jpg 1600 1600 N 25988 9732 product 27950 A 3 27950
0 05_u8qf-ik.jpg 1600 1600 N 25991 9731 product 27953 A 3 27953
0 03_zwq7-o6.jpg 1600 1600 N 25994 9730 product 27956 A 3 27956
0 03_go6o-7w.jpg 1600 1600 N 25998 9727 product 27960 A 3 27960
0 03_lzkg-di.jpg 1600 1600 N 26001 9726 product 27963 A 3 27963
0 61Yf3xcOgdL._SL1500_.jpg 1500 1500 N 25964 9740 product 27926 A 4 27926
0 04_qtys-6h.jpg 1600 1600 N 25979 9734 product 27941 A 4 27941