sql query alias column name in where clause