Unknown Column In Where Clause

Posted by Corpo on Stack Overflow See other posts from Stack Overflow or by Corpo
Published on 2008-09-30T15:37:17Z Indexed on 2010/05/26 3:31 UTC
Read the original article Hit count: 180

Filed under:

I have a simple query: SELECT u_name AS user_name FROM users WHERE user_name = "john";

I get "Unknown Column 'user_name' in where clause". Can I not refer to 'user_name' in other parts of the statement even after select 'u_name as user_name'?

© Stack Overflow or respective owner

Related posts about mysql