UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'jFfn2t/OyfkHSjaMgZsuBQHYSlf3nySfPQzbuR9hQho='
WHERE
key_id = 'f91dda1ac3c3e5d5eafdf093f7d927fa88f274ec44221ff4f3ee41dd459a1945'
AND (
token = 'jFfn2t/OyfkHSjaMgZsuBQHYSlf3nySfPQzbuR9hQho='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)