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 (
    '50214', '45834', '45835', '45836', 
    '45837', '45838', '45839', '45840', 
    '45844', '45845', '45846', '45847', 
    '45849', '45850', '45851', '45852'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00176

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "164.81"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "31.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": 31,
            "rows_produced_per_join": 31,
            "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 ('50214','45834','45835','45836','45837','45838','45839','45840','45844','45845','45846','45847','45849','45850','45851','45852')))",
            "cost_info": {
              "read_cost": "53.21",
              "eval_cost": "6.20",
              "prefix_cost": "59.41",
              "data_read_per_join": "2K"
            },
            "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": 31,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "31.00",
              "eval_cost": "6.20",
              "prefix_cost": "96.61",
              "data_read_per_join": "23K"
            },
            "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": 31,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "31.00",
              "eval_cost": "6.20",
              "prefix_cost": "133.81",
              "data_read_per_join": "18K"
            },
            "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 p3orjLSwqF._UX600_TTW__.jpg 600 600 N 73494 45834 product 75445 A 1 75445
0 71hAfZZk4uL._SL1500__sop5-2m.jpg 1500 1500 N 73503 45835 product 75454 A 1 75454
0 81zIFzbf2fL._SL1500_.jpg 1500 1500 N 73519 45838 product 75470 A 1 75470
0 zoook-zb-halo-ultra-bluetooth-headset-with-charging-dock-500x500.jpg 500 500 N 73538 45844 product 75489 A 1 75489
0 810oNTFQKjL._SL1500_.jpg 1500 897 N 73539 45845 product 75490 A 1 75490
0 71cbBfBa4PL._SL1500__jw8i-cn.jpg 1500 1500 N 73544 45846 product 75494 A 1 75494
0 zoook-zb-be1-original-imaewkxpt7hefhbg_5uom-ld.jpeg 254 416 N 73556 45847 product 75507 A 1 75507
0 51PW5SkHP3L._SL1200_.jpg 1200 1000 N 73561 45849 product 75512 A 1 75512
0 61vSW8O8HCL._AC_SL1500__d959-qv.jpg 693 1355 N 73573 45851 product 75524 A 1 75524
0 51Ha0pOfd5L._AC_SL1500_.jpg 644 1396 N 73580 45852 product 75531 A 1 75531
0 9xbKM-Gg.jpeg 1200 1200 N 76036 45839 product 77979 A 1 77979
0 61wKu751MpL._AC_SL1500_.jpg 1500 798 N 81115 50214 product 83058 A 1 83058
0 41V0M-d0lPL._AC_.jpg 460 494 N 85895 45840 product 83627 A 1 83627
0 d9d2f4efd50d1cdd8fb6d1d2145f114c-hi.jpg 305 560 N 73495 45834 product 75446 A 2 75446
0 61qJJ-gVZBL._AC_SL1500_.jpg 1323 1435 N 73511 45837 product 75462 A 2 75462
0 71zWMEF46PL._SL1500_.jpg 1500 1500 N 73520 45838 product 75471 A 2 75471
0 61J7D_d3kAL._SL1500_.jpg 1500 1500 N 73540 45845 product 75491 A 2 75491
0 71cbBfBa4PL._SL1500__8x0t-k0.jpg 1500 1500 N 73543 45846 product 75495 A 2 75495
0 zoook-zb-be1-original-imaewkxpt7hefhbg.jpeg 254 416 N 73555 45847 product 75506 A 2 75506
0 71kC3Jxjq5L._SL1200_.jpg 1200 1000 N 73562 45849 product 75513 A 2 75513
0 518YeT67ZdL._AC_SL1500__q8h1-23.jpg 660 1398 N 73570 45850 product 75521 A 2 75521
0 61vSW8O8HCL._AC_SL1500_.jpg 693 1355 N 73572 45851 product 75523 A 2 75523
0 61dH3I_rodL._AC_SL1500_.jpg 968 1355 N 73581 45852 product 75532 A 2 75532
0 ilv2Ebhg.jpeg 1200 1200 N 76037 45839 product 77980 A 2 77980
0 71gsV5WFCzL._SL1500__owet-9x.jpg 1500 1500 N 73504 45835 product 75455 A 3 75455
0 71oPk-ysB-L._AC_SL1500_.jpg 1405 1439 N 73513 45837 product 75464 A 3 75464
0 71668Qf_SvL._SL1500_.jpg 1500 1500 N 73541 45845 product 75492 A 3 75492
0 71cbBfBa4PL._SL1500_.jpg 1500 1500 N 73542 45846 product 75493 A 3 75493
0 zoook-zb-be1-original-imaewkxp5dbcpfen.jpeg 348 416 N 73557 45847 product 75509 A 3 75509
0 loading-large_labeled._CB147965460_.gif 80 104 N 73563 45849 product 75514 A 3 75514
0 61ZCn3GJHoL._AC_SL1500__dnba-3r.jpg 1403 1266 N 73571 45850 product 75522 A 3 75522
0 61rucmi6qCL._AC_SL1500__1rzd-75.jpg 1387 1211 N 73575 45851 product 75526 A 3 75526
0 6159WmSfSZL._AC_SL1500_.jpg 1382 1156 N 73582 45852 product 75533 A 3 75533
0 TG-EsrfQ.jpeg 1200 1200 N 76038 45839 product 77981 A 3 77981
0 71VMx05ztIL._SL1500__o86b-io.jpg 1500 1500 N 73547 45846 product 75498 A 4 75498
0 61zXasggufL._AC_SL1500__r1he-sh.jpg 857 1328 N 73577 45851 product 75528 A 4 75528
0 WgFY0RUw.jpeg 1200 1200 N 76039 45839 product 77982 A 4 77982
0 61NilJlXSvL._SL1500__42co-iv.jpg 1500 1500 N 73550 45846 product 75501 A 5 75501
0 61jgKHskxEL._AC_SL1500__pc9y-yh.jpg 532 1482 N 73579 45851 product 75530 A 5 75530