SELECT 
  video_id, 
  product_id 
FROM 
  cscart_ab__video_gallery 
WHERE 
  product_id IN (
    973, 987, 1022, 974, 1024, 1065, 1017, 
    975, 1040, 1048, 982, 1018
  )

Query time 0.00041

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "cscart_ab__video_gallery",
      "access_type": "range",
      "possible_keys": ["product_id"],
      "key": "product_id",
      "key_length": "3",
      "used_key_parts": ["product_id"],
      "rows": 12,
      "filtered": 100,
      "attached_condition": "cscart_ab__video_gallery.product_id in (973,987,1022,974,1024,1065,1017,975,1040,1048,982,1018)",
      "using_index": true
    }
  }
}