Why are you not allowed to refer to a column alias defined by the SELECT clause in the WHERE clause?
You not allowed to refer to a column alias defined by the SELECT clause in the WHERE clause, because the WHERE clause is logically evaluate...

https://www.interviewquestionspdf.com/2016/12/why-are-you-not-allowed-to-refer-to.html