UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'b4YX9F3aakKj/7+vlROgYR2NL+3q8i+DO65xsy1Hg4s='
WHERE
key_id = 'e9b1ee7b2facfa83014fa9608fced80ed759f609ca4469b159e1567a8068b67c'
AND (
token = 'b4YX9F3aakKj/7+vlROgYR2NL+3q8i+DO65xsy1Hg4s='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)