UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'lAcN5ddEllxT9+4LD1K4RyCxFsOu7h8yuJr/iupSKXo=' 
WHERE 
  key_id = '19a76cea35d4a6626a086f77efa9153af92f20ea3c8954d939e7d09931d320c3' 
  AND (
    token = 'lAcN5ddEllxT9+4LD1K4RyCxFsOu7h8yuJr/iupSKXo=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00030