SELECT 
  video_id, 
  product_id 
FROM 
  vi_ab__video_gallery 
WHERE 
  product_id IN (
    227, 241, 240, 214, 217, 218, 207, 205, 
    208, 229, 211, 210, 209, 213, 215, 226, 
    228, 247
  ) 
  AND status = 'A' 
  AND storefront_id IN (1, 0)

Query time 0.00011

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "message": "Impossible WHERE noticed after reading const tables"
    }
  }
}