UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'LtDT/xJQ4rI1ghefi+8qEu+bVTkzT8RB6ld9Cfmjp2w='
WHERE
key_id = '15f409cd06c2c04872773869fb190a93a7888903c57a06962fa89b67798569a8'
AND (
token = 'LtDT/xJQ4rI1ghefi+8qEu+bVTkzT8RB6ld9Cfmjp2w='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)