UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'fHlqVQNVC8zlUiWCnDxh/tBmzVzH6Fys7C4dZCTaJYs='
WHERE
key_id = 'e03a7556a98b6378b7cf935d95cb3cce29f0f03e404948a4fbdc8f641707ab89'
AND (
token = 'fHlqVQNVC8zlUiWCnDxh/tBmzVzH6Fys7C4dZCTaJYs='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)