UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'MqQA1B6P25nXEgQph62BhG6cFDPiDJiAKJ6t+BfRJJ4=' 
WHERE 
  key_id = 'a00f61c8c2c702733ffe29a7bd6a802cde6d75f280c5f539feb35943528d91bb' 
  AND (
    token = 'MqQA1B6P25nXEgQph62BhG6cFDPiDJiAKJ6t+BfRJJ4=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00019