UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'HQbFZo/c0N/nx9q/kN8xyeu+w9KmB9O/HGMm5I59t6Q=' 
WHERE 
  key_id = 'f8e35f01fa46933c24851db4e1d560ab57a564da50d802c0d23b0dc87dd63e36' 
  AND (
    token = 'HQbFZo/c0N/nx9q/kN8xyeu+w9KmB9O/HGMm5I59t6Q=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00017