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 (
    '6918', '6919', '6920', '6921', '6922', 
    '6923', '6924', '6925', '6926', '6927', 
    '6928', '6929', '6930', '6931', '6932', 
    '6933', '6934', '6935', '6936', '6937', 
    '6938', '6939', '6940', '6941', '6942', 
    '6943', '6944', '6945', '6946', '6947', 
    '6948', '6949'
  ) 
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": "185.61"
    },
    "ordering_operation": {
      "using_filesort": true,
      "cost_info": {
        "sort_cost": "32.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": 32,
            "rows_produced_per_join": 32,
            "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 ('6918','6919','6920','6921','6922','6923','6924','6925','6926','6927','6928','6929','6930','6931','6932','6933','6934','6935','6936','6937','6938','6939','6940','6941','6942','6943','6944','6945','6946','6947','6948','6949')))",
            "cost_info": {
              "read_cost": "70.41",
              "eval_cost": "6.40",
              "prefix_cost": "76.81",
              "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": 32,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "32.00",
              "eval_cost": "6.40",
              "prefix_cost": "115.21",
              "data_read_per_join": "24K"
            },
            "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": 32,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "32.00",
              "eval_cost": "6.40",
              "prefix_cost": "153.61",
              "data_read_per_join": "19K"
            },
            "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 IBIR115BLK.jpg 600 600 N 13806 6918 product 15768 M 0 15768
0 60D08B34-E41D-9BAF-E8A099F36B2D6AE1.jpg 1200 1200 N 13810 6919 product 15772 M 0 15772
0 s-l300_jrf6-0n.jpg 300 300 N 13813 6920 product 15775 M 0 15775
0 17038391_2SZ.jpg 1000 1000 N 13814 6921 product 15776 M 0 15776
0 https-__www.trajektorija.lt_355394-large_default_case-logic-slrc-208-action-camera-bag-black-rugged.jpg 458 458 N 13817 6922 product 15779 M 0 15779
0 899808_800x600_b.jpg 800 600 N 13820 6924 product 15782 M 0 15782
0 775213.jpg 800 800 N 13823 6925 product 15785 M 0 15785
0 4.jpg 735 782 N 13825 6926 product 15787 M 0 15787
0 6114818_rd.jpg 2452 2271 N 13827 6927 product 15789 M 0 15789
0 1_Case-Logic-BRCS-103-Schoudertas-Zwart-cameratassen-en-rugzakken.jpg 788 598 N 13830 6928 product 15792 M 0 15792
0 s-l1000_342o-uq.jpg 1000 1000 N 13832 6929 product 15794 M 0 15794
0 case-logic-bryker-product-thumb.jpg 300 300 N 13834 6930 product 15796 M 0 15796
0 s-l300_thdw-43.jpg 269 300 N 13836 6931 product 15798 M 0 15798
0 s-l300_0e0v-pm.jpg 300 300 N 13839 6932 product 15801 M 0 15801
0 s-l300_x48x-si.jpg 300 300 N 13840 6933 product 15802 M 0 15802
0 image_7jlt-jm.jpg 2512 1931 N 13841 6934 product 15803 M 0 15803
0 s-l300_ld5t-fp.jpg 300 300 N 13845 6935 product 15807 M 0 15807
0 a9d501770cf84bf2afd5c1b840af5a32.jpg 500 500 N 13848 6936 product 15810 M 0 15810
0 item_XL_23332871_33181636.jpg 560 450 N 13849 6937 product 15811 M 0 15811
0 e3910c53-a162-49ac-80f1-065369a33522_1.ab6bd7b8ed6d941b09a001c2df2526a3.jpeg 500 500 N 13852 6938 product 15814 M 0 15814
0 51aZ8jc-nTL.jpg 500 375 N 13853 6939 product 15815 M 0 15815
0 s-l300_vx8h-hu.jpg 300 300 N 13855 6940 product 15817 M 0 15817
0 s-l300_3c5a-6m.jpg 300 300 N 13857 6941 product 15819 M 0 15819
0 https-__cdn.shopify.com_s_files_1_0009_5354_8852_products_b1_a859e3d4-1a9a-4b4d-bf1a-1dd9663034e2.jpg 516 500 N 15130 6943 product 17092 M 0 17092
0 https-__cdn.shopify.com_s_files_1_0009_5354_8852_products_CL-LAPS113PEA.jpg 436 500 N 15132 6944 product 17094 M 0 17094
0 https-__cdn.shopify.com_s_files_1_0009_5354_8852_products_C1_38a6b4e9-d14a-426b-8212-f60e4e0d269f.jpg 500 500 N 15135 6945 product 17097 M 0 17097
0 CL-QNS113K_1_ed8de845-30ae-4983-a109-20fff9f095b7.jpg 415 500 N 15137 6946 product 17099 M 0 17099
0 https-__cdn.shopify.com_s_files_1_0009_5354_8852_products_CL-QNS113K_1.jpg 415 500 N 15138 6947 product 17100 M 0 17100
0 https-__cdn.shopify.com_s_files_1_0009_5354_8852_products_CL-SLRC200_2.jpg 500 500 N 15140 6948 product 17102 M 0 17102
0 https-__cdn.shopify.com_s_files_1_0009_5354_8852_products_0046_CL-SLRC202_1.jpg 800 800 N 15142 6949 product 17104 M 0 17104
0 case_web_5aey-wr.jpg 640 626 N 63197 6923 product 65153 M 0 65153
0 58122531384e1f2fb7258412.jpg 500 360 N 13859 6942 product 15821 M 1 15821