UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'neTJbEBjHnubc2BhJmBjf3aOguBo0UjEdK03B6OGL2k='
WHERE
key_id = 'c9a964cbfcdb091e1373835fe790be49ec257e37cdc0f03ab5247f97b05b7f26'
AND (
token = 'neTJbEBjHnubc2BhJmBjf3aOguBo0UjEdK03B6OGL2k='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)