UPDATE
cscart_lock_keys
SET
expiry_at = UNIX_TIMESTAMP(NOW()) + 30,
token = '+FJ2a1c0FrURgejuNHORSRbf6TpjeueJOj2f9zj27e4='
WHERE
key_id = '356dee55bf1c41a5429e50627cd064127f032994cd973378748049d865f542c7'
AND (
token = '+FJ2a1c0FrURgejuNHORSRbf6TpjeueJOj2f9zj27e4='
OR expiry_at <= UNIX_TIMESTAMP(NOW())
)