UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'KAntur20sTApo2zxdbi7un+NuQEmKRANnlDDYV8de4A='
WHERE
key_id = '8af75461c1973cddb5da89b43e848cdb7a8739eafeeaa5a92cea33c92b9d4c1f'
AND (
token = 'KAntur20sTApo2zxdbi7un+NuQEmKRANnlDDYV8de4A='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)