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 (
    '1593', '1594', '1595', '1596', '1597', 
    '1598', '1599', '1600', '1601', '1602', 
    '1603', '1605', '1606', '1607', '1610', 
    '1611', '1612', '1613', '1614', '1615', 
    '1616', '1617', '1618', '1624', '1625', 
    '1626', '1627', '1628'
  ) 
ORDER BY 
  q_images_links.position, 
  q_images_links.pair_id

Query time 0.00181

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "162.41"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "28.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": 28,
            "rows_produced_per_join": 28,
            "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 ('1593','1594','1595','1596','1597','1598','1599','1600','1601','1602','1603','1605','1606','1607','1610','1611','1612','1613','1614','1615','1616','1617','1618','1624','1625','1626','1627','1628')))",
            "cost_info": {
              "read_cost": "61.61",
              "eval_cost": "5.60",
              "prefix_cost": "67.21",
              "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": 28,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "28.00",
              "eval_cost": "5.60",
              "prefix_cost": "100.81",
              "data_read_per_join": "21K"
            },
            "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": 28,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "28.00",
              "eval_cost": "5.60",
              "prefix_cost": "134.41",
              "data_read_per_join": "16K"
            },
            "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 MV15443B.jpg 756 1008 N 3600 1610 product 5574 M 0 5574
0 MV15443C.jpg 756 1008 N 3601 1611 product 5575 M 0 5575
0 WD19747A.jpg 756 1008 N 3602 1613 product 5576 M 0 5576
0 WD19747B.jpg 756 1008 N 3603 1614 product 5577 M 0 5577
0 WD19747C.jpg 756 1008 N 3604 1615 product 5578 M 0 5578
0 MV15430B.jpg 756 1008 N 3605 1616 product 5579 M 0 5579
0 MV15430C.jpg 756 1008 N 3606 1617 product 5580 M 0 5580
0 MV15430D.jpg 756 1008 N 3607 1618 product 5581 M 0 5581
0 TCNC-1005_copy.jpg 309 699 N 3643 1626 product 5617 M 0 5617
0 WD19719-ART.jpg 540 960 N 3645 1602 product 5619 M 0 5619
0 WD19732-ART.jpg 540 960 N 3647 1601 product 5621 M 0 5621
0 WD19720-ART.jpg 540 960 N 3649 1597 product 5623 M 0 5623
0 MV15429-ART.jpg 540 960 N 3651 1598 product 5625 M 0 5625
0 MV15443D_3.jpg 362 747 N 3661 1612 product 5635 M 0 5635
0 WD19742-ART2.jpg 471 748 N 3884 1593 product 5858 M 0 5858
0 WD19733-ART.jpg 540 960 N 4026 1596 product 6000 M 0 6000
0 WD19729-ART.jpg 540 713 N 4028 1594 product 6002 M 0 6002
0 img_86858_7598da3fafc80295006baf0cc9046ce4_16.jpg 265 368 N 5138 1600 product 7112 M 0 7112
0 wd19062.jpg 800 739 N 5139 1595 product 7113 M 0 7113
0 MV15441-ART.png 1080 1920 N 18260 1599 product 20222 M 0 20222
0 IMG_3370.png 1176 3024 N 18261 1603 product 20223 M 0 20223
0 IMG_3372.png 1037 3024 N 18264 1605 product 20226 M 0 20226
0 IMG_3373.png 1183 3024 N 18266 1606 product 20228 M 0 20228
0 IMG_3369.png 1275 3024 N 18268 1607 product 20230 M 0 20230
0 1_qn30-ti.jpg 640 626 N 81993 1625 product 83936 M 0 83936
0 TCNC-1002__2_.jpg 1651 1757 N 3613 1624 product 5587 M 10 5587
0 TCNC-1008__2_.jpg 1644 1918 N 3615 1627 product 5589 M 10 5589
0 TCNC-1009__2_.jpg 864 1031 N 3616 1628 product 5590 M 10 5590