UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'f4NLwCUEmT7Ug9X6j6A2VBI1qlRl+HKzwwZc6IKhCdI='
WHERE
key_id = '203db121ec16a4949d2c92458cdcd3cc229ad3099335b539f38b12020a3f9196'
AND (
token = 'f4NLwCUEmT7Ug9X6j6A2VBI1qlRl+HKzwwZc6IKhCdI='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)