SELECT 
  video_id, 
  product_id 
FROM 
  cscart_ab__video_gallery 
WHERE 
  product_id IN (
    1248, 1256, 1253, 1249, 1255, 1252, 1257, 
    1250, 1254, 1251
  )

Query time 0.00054

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": 10,
      "filtered": 100,
      "attached_condition": "cscart_ab__video_gallery.product_id in (1248,1256,1253,1249,1255,1252,1257,1250,1254,1251)",
      "using_index": true
    }
  }
}