UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'IEJjtTw6z0NHDqz2jtV7esfVXf6VxSnnQEVj4qS36/U=' 
WHERE 
  key_id = '79f17504a60ce3170f0d72ec0a65a927ce2e13847f96a6a867344dee75caa469' 
  AND (
    token = 'IEJjtTw6z0NHDqz2jtV7esfVXf6VxSnnQEVj4qS36/U=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00017