That's because you are trying to use the column name outside a query when you assign it to variable. This should do the trick:
SELECT @time_24_2 = end_date_full
FROM example
WHERE datediff(hour, getdate(), end_date_full) < 24
group by end_date_full