UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = 'ZYsL2KN+Pyt2uiXzy83K1DL3pHv4T33XR7ag5IA7uKw='
WHERE
key_id = '26e6397087685279f72b9c407a95286883e3c94a2eb44aac5a3f4221a8bbb1f4'
AND (
token = 'ZYsL2KN+Pyt2uiXzy83K1DL3pHv4T33XR7ag5IA7uKw='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)