UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '2GAKx63RZAgV+vgg53rXcJFR/3jEei0QvC3RGzG5k7M='
WHERE
key_id = 'dca806efaacc10ca8c91e9b9007f7a0543755c75551be8ad33ca3647b9d2968a'
AND (
token = '2GAKx63RZAgV+vgg53rXcJFR/3jEei0QvC3RGzG5k7M='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)