SELECT 
  1 
FROM 
  cscart_ec_print_temp_designs 
WHERE 
  session_id = 'W4NC-JBQY-Z639-3EMN-3NU8-WZ7R-YY2A-DC8J' 
  AND product_id = 165 
  AND expires_at > 1771081557 
  AND confirmed = 'Y' 
LIMIT 
  1

Query time 0.00034

JSON explain

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