diff --git a/transformers/synthetix/models/raw/optimism/mainnet/tlx_lt_rebalanced_optimism_mainnet.sql b/transformers/synthetix/models/raw/optimism/mainnet/tlx_lt_rebalanced_optimism_mainnet.sql index 17e794e8..bacdd565 100644 --- a/transformers/synthetix/models/raw/optimism/mainnet/tlx_lt_rebalanced_optimism_mainnet.sql +++ b/transformers/synthetix/models/raw/optimism/mainnet/tlx_lt_rebalanced_optimism_mainnet.sql @@ -14,8 +14,8 @@ from where {% if is_incremental() %} block_number > ( - select coalesce(max(block_number), 0) as b - from {{ this }} + select coalesce(max(t.block_number), 0) as b + from {{ this }} as t ) {% else %} true