UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'Qo1db7fyvr5BETe8bCnNMkHJM0OnKItJqodE9LG+vlE=' 
WHERE 
  key_id = '201088d77c3a34cd4a6282ba115afd358a33f55af63e8e52cbaa3fd5c6a2fb1c' 
  AND (
    token = 'Qo1db7fyvr5BETe8bCnNMkHJM0OnKItJqodE9LG+vlE=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00016