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 (
    39989, 39981, 39862, 40074, 39961, 39818, 
    39808, 39643, 39642, 39445, 39505, 
    39150, 39149, 39271, 39418, 39074, 
    39119, 38831, 38821, 38943
  ) 
ORDER BY 
  cscart_images_links.position, 
  cscart_images_links.pair_id

Query time 0.00050

Explain
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE cscart_images_links range object_id object_id 81 20 Using index condition; Using filesort
1 SIMPLE cscart_images eq_ref PRIMARY PRIMARY 4 toolboxdigitalshop_dev.cscart_images_links.detailed_id 1
1 SIMPLE cscart_common_descriptions eq_ref PRIMARY PRIMARY 108 toolboxdigitalshop_dev.cscart_images.image_id,const,const 1 Using where

Result

image_id image_path image_x image_y pair_id object_id object_type detailed_id type position alt images_image_id
0 5054281396524.jpg 1000 1000 40277 38821 product 43800 M 0 43800
0 5054281396531.jpg 1000 1000 40287 38831 product 43810 M 0 43810
0 5054281435186.jpg 1000 1000 40403 38943 product 43926 M 0 43926
0 5054281444836.jpg 1000 1000 40534 39074 product 44057 M 0 44057
0 5054281447240.jpg 1000 1000 40579 39119 product 44102 M 0 44102
0 5054281449855.jpg 1000 1000 40609 39149 product 44132 M 0 44132
0 5054281449855_mrts-ho.jpg 1000 1000 40610 39150 product 44133 M 0 44133
0 5054281455320.jpg 1000 1000 40734 39271 product 44257 M 0 44257
0 5054281458611.jpg 1000 1000 40881 39418 product 44404 M 0 44404
0 5054281463417.jpg 1000 1000 40907 39445 product 44430 M 0 44430
0 5054281468757.jpg 1000 1000 40967 39505 product 44490 M 0 44490
0 5054281476646.jpg 1000 1000 41110 39642 product 44633 M 0 44633
0 5054281476646_eq0x-dq.jpg 1000 1000 41111 39643 product 44634 M 0 44634
0 5054281483934.jpg 1000 1000 41276 39808 product 44799 M 0 44799
0 5054281486409.jpg 1000 1000 41286 39818 product 44809 M 0 44809
0 5054281483910.jpg 1000 1000 41336 39862 product 44859 M 0 44859
0 5054281495081.jpg 1000 1000 41438 39961 product 44961 M 0 44961
0 5054281500310.jpg 1000 1000 41458 39981 product 44981 M 0 44981
0 5054281503823.jpg 1000 1000 41467 39989 product 44990 M 0 44990
0 5054281508750.jpg 1000 1000 41550 40074 product 45073 M 0 45073