SELECT 
  cscart_images.*, 
  cscart_images_links.*, 
  cscart_common_descriptions.description AS alt, 
  cscart_images.image_id AS images_image_id 
FROM 
  cscart_images_links 
  LEFT JOIN cscart_images ON cscart_images_links.detailed_id = cscart_images.image_id 
  LEFT JOIN cscart_common_descriptions ON cscart_common_descriptions.object_id = cscart_images.image_id 
  AND cscart_common_descriptions.object_holder = 'images' 
  AND cscart_common_descriptions.lang_code = 'en' 
WHERE 
  cscart_images_links.object_type = 'product' 
  AND cscart_images_links.type = 'M' 
  AND cscart_images_links.object_id IN (
    196, 230, 231, 165, 205, 206, 236, 237, 
    221, 222, 223, 238, 239, 193, 232, 233, 
    224, 225, 226, 240, 241, 200, 234, 235
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00061

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.124068283,
    "nested_loop": [
      {
        "read_sorted_file": {
          "filesort": {
            "sort_key": "cscart_images_links.position, cscart_images_links.pair_id",
            "table": {
              "table_name": "cscart_images_links",
              "access_type": "range",
              "possible_keys": ["object_id"],
              "key": "object_id",
              "key_length": "81",
              "used_key_parts": ["object_id", "object_type", "type"],
              "loops": 1,
              "rows": 24,
              "cost": 0.05184776,
              "filtered": 100,
              "index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'M' and cscart_images_links.object_id in (196,230,231,165,205,206,236,237,221,222,223,238,239,193,232,233,224,225,226,240,241,200,234,235)"
            }
          }
        }
      },
      {
        "table": {
          "table_name": "cscart_images",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "4",
          "used_key_parts": ["image_id"],
          "ref": ["u428615623_ecartifygonje.cscart_images_links.detailed_id"],
          "loops": 24,
          "rows": 1,
          "cost": 0.02474336,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "cscart_common_descriptions",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "108",
          "used_key_parts": ["object_id", "lang_code", "object_holder"],
          "ref": [
            "u428615623_ecartifygonje.cscart_images.image_id",
            "const",
            "const"
          ],
          "loops": 24,
          "rows": 1,
          "cost": 0.03211616,
          "filtered": 100,
          "attached_condition": "trigcond(cscart_common_descriptions.object_holder = 'images' and cscart_common_descriptions.lang_code = 'en' and trigcond(cscart_images.image_id is not null))"
        }
      }
    ]
  }
}

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 111_8n3n-p2.png 949 832 N 613 165 product 9107 M 0 9107
0 Fried_Beef_-_to_use.png 498 524 N 615 205 product 9109 M 0 9109
0 Freid_Chicken_-_to_use.png 425 440 N 617 206 product 9111 M 0 9111
0 F_F_-_Edited.png 551 460 N 619 236 product 9113 M 0 9113
0 F_T_-_Edited.png 556 459 N 621 237 product 9115 M 0 9115
0 Jollof_Beef_-_to_use.png 479 383 N 626 222 product 9120 M 0 9120
0 Jollof_Chicken_-_to_use.png 463 467 N 628 223 product 9122 M 0 9122
0 J_F_-_Edited.png 650 434 N 630 238 product 9124 M 0 9124
0 J_T_-_Edited.png 641 443 N 632 239 product 9126 M 0 9126
0 Ogbono_Soup_2_-_to_use_-_Edited.jpg 4031 3024 N 636 193 product 9130 M 0 9130
0 O_Y_-_Edited_-_Edited.png 558 477 N 637 232 product 9131 M 0 9131
0 O_A_-_Edited.png 556 448 N 639 233 product 9133 M 0 9133
0 Plantain_1_-_to_use_-_Edited.png 2738 2959 N 641 224 product 9135 M 0 9135
0 Plantain_Beef_-_to_use.png 485 523 N 643 225 product 9137 M 0 9137
0 Plantain_Chicken_-_to_use_.png 447 371 N 644 226 product 9138 M 0 9138
0 P_F_-_Edited.png 561 455 N 645 240 product 9139 M 0 9139
0 P_T_-_Edited.png 575 449 N 646 241 product 9140 M 0 9140
0 Egusi_-_to_use.jpg 3771 3017 N 651 200 product 9145 M 0 9145
0 Ef_Y_-_Edited_-_Edited.png 587 459 N 653 234 product 9147 M 0 9147
0 Ef_A_-_Edited_-_Edited.png 565 449 N 655 235 product 9149 M 0 9149
0 Egusi_2.jpg 1024 1024 N 843 196 product 9320 M 0 9320
0 olori_1.jpg 1024 1024 N 845 230 product 9322 M 0 9322
0 olori_2.jpg 1024 1024 N 846 231 product 9323 M 0 9323
0 Jollof_Rice_-_to_use_-_Edited.jpg 3024 2463 N 625 221 product 9119 M 1 9119