UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'GPMfT++INPa3vR5h0zOCZUEjP+wwxGPA+ljKWGCaLZI=' 
WHERE 
  key_id = '68add59e1dda2e421fc5fce6f628ab4633cc207660049ed7c083b8c2bee58613' 
  AND (
    token = 'GPMfT++INPa3vR5h0zOCZUEjP+wwxGPA+ljKWGCaLZI=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00035