I need to have results beyond 147 but when I execute my code workbench say me Error Code: 1054. Unknown column 'total_spend' in 'where clause'
SELECT
customer_id,
actor.first_name as first_name,
actor.last_name as last_name,
sum(amount) as total_spend
FROM payment
INNER JOIN actor
ON customer_id = actor_id
where total_spend < 100
group by customer_id
order by total_spend desc;
Can you help me pls ?