UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '/4tMKoaaT6LTp+ZLc2yGveJ5Sjn0d5U0NdmQBQgMeyA='
WHERE
key_id = '432f693f36667add305293b768b5084c7aa0b7bec04a32739772e80b99e5bf93'
AND (
token = '/4tMKoaaT6LTp+ZLc2yGveJ5Sjn0d5U0NdmQBQgMeyA='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)