SELECT 
  1 
FROM 
  cscart_ec_print_temp_designs 
WHERE 
  session_id = 'HE8F-B6R7-HAV1-DF5L-GR9K-CKVA-ON4W-E2J3' 
  AND product_id = 161 
  AND expires_at > 1771081557 
  AND confirmed = 'Y' 
LIMIT 
  1

Query time 0.00040

JSON explain

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