UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'FCbapncd7qjxFgyY1ZaPycqfmiD6/QfYZvSJEQNKEBg='
WHERE
key_id = '45d920809060185894128f1ea977842f7dbc503989718f76545da409b06204fc'
AND (
token = 'FCbapncd7qjxFgyY1ZaPycqfmiD6/QfYZvSJEQNKEBg='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)