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 (
    '38173', '38174', '38175', '38176', 
    '38177', '38178', '38179', '38180', 
    '38181', '38182', '38183', '38184', 
    '38185', '38186', '38187', '38188'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00111

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "208.01"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "40.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": 40,
            "rows_produced_per_join": 40,
            "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 ('38173','38174','38175','38176','38177','38178','38179','38180','38181','38182','38183','38184','38185','38186','38187','38188')))",
            "cost_info": {
              "read_cost": "64.01",
              "eval_cost": "8.00",
              "prefix_cost": "72.01",
              "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": 40,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "40.00",
              "eval_cost": "8.00",
              "prefix_cost": "120.01",
              "data_read_per_join": "30K"
            },
            "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": 40,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "40.00",
              "eval_cost": "8.00",
              "prefix_cost": "168.01",
              "data_read_per_join": "23K"
            },
            "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 375x500.3671.jpg 375 500 N 59323 38173 product 61279 M 0 61279
0 51yt55eODlL._SX522_.jpg 522 522 N 59324 38174 product 61280 M 0 61280
0 375x500.3239.jpg 375 500 N 59325 38175 product 61281 M 0 61281
0 51eltpZNCmL._SX522_.jpg 522 522 N 59326 38176 product 61282 M 0 61282
0 75655w.jpg 600 600 N 59327 38177 product 61283 M 0 61283
0 518CearvhtL._SX522_.jpg 522 522 N 59328 38178 product 61284 M 0 61284
0 download__2__i5y7-56.jpg 224 300 N 59330 38180 product 61286 M 0 61286
0 montale-chocolategreedy.jpg 350 350 N 59331 38181 product 61287 M 0 61287
0 375x500.3772.jpg 375 500 N 59332 38182 product 61288 M 0 61288
0 375x500.9556.jpg 375 500 N 59333 38183 product 61289 M 0 61289
0 intense-pepper.jpg 248 414 N 59335 38185 product 61291 M 0 61291
0 35447.jpg 400 575 N 59336 38186 product 61292 M 0 61292
0 New-York-Intense100ml.jpg 800 1000 N 59338 38188 product 61294 M 0 61294
0 51tGuMo8KTL._SX522_.jpg 522 522 N 59329 38179 product 61285 M 1 61285
0 s-l300_ift6-9x.jpg 225 300 N 62004 38184 product 63960 M 1 63960
0 s-l1600_ts91-ju.jpg 1600 1200 N 67587 38187 product 69538 M 2 69538