I want to do something like this:

SELECT h.username AS user
FROM userdata AS h
WHERE user=”nstowe”;

I am using the ALIAS of h.username, in my WHERE.

I’m using MySQL.

It doesn’t work, although I would of thought it would. Any ideas? is this same for Oracle, PG?