SELECT 
  1 
FROM 
  cscart_june_setupec_print_temp_designs 
WHERE 
  session_id = 'T6Q8-L5R0-0B9I-VM2A-GP06-WPPT-0OZP-APQM' 
  AND product_id = 50 
  AND expires_at > 1781898016 
  AND confirmed = 'Y' 
LIMIT 
  1

Query time 0.00029

JSON explain

{
  "query_block": {
    "select_id": 1,
    "message": "no matching row in const table"
  }
}