UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'FGIUTKfXNNMT/nl0OhgK44RAjmRxE571DXtOouypGKM='
WHERE
key_id = '2c2d5aea37415d680d08c78be18c889d221196a281b955688639968d0ee7e478'
AND (
token = 'FGIUTKfXNNMT/nl0OhgK44RAjmRxE571DXtOouypGKM='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)