Why do you need to place columns you create yourself (for example select 1 as \"number\") after HAVING and not WHERE in MySQL?
select 1 as \"number\"
HAVING
WHERE
Having is only used with aggregation but where with non aggregation statements If you have where word put it before aggregation (group by)