I want to query a value from an account I made in SQL:
(Valor - (select Visibilidade)) AS Diferenca
When I try to query:
Diferenca <= 500
It displays the following error:
Error Code: 1054. Unknown 'Diferenca' in 'where clause'