UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'kR2OeoTFdtsuR/Ze/fk0g6fuqxIg2bhL0xh2g0kZu/U=' 
WHERE 
  key_id = '2c847c4177a686d7a7f686695b9d66ec37fe0016dedd75a9749d784b756b132b' 
  AND (
    token = 'kR2OeoTFdtsuR/Ze/fk0g6fuqxIg2bhL0xh2g0kZu/U=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00032