General Question
![richardhenry's avatar](http://dkg88rp4qbe6q.cloudfront.net/avatars/richardhenry/Photo_on_2010-02-22_at_23.32_thumb.jpg)
Is there something wrong with my MySQL query?
This query is refusing to run:
SELECT CONCAT_WS( ’ ’, first_name, last_name ) AS full_name, username, country, region, CONCAT_WS( ’, ’, region, country ) AS location FROM people WHERE full_name=‘John Doe’
Returning:
Unknown column ‘full_name’ in ‘where clause’
Am I missing something? I can order by full_name, but cannot use it in a where clause. I’ve spent a while looking for some documentation on this, but I can’t seem to find anything that covers it.
Any help is greatly appreciated!
Observing members:
0
Composing members:
0
![](http://d3phpakcjc7x1x.cloudfront.net/images/v2/eye.png)
![](http://d3phpakcjc7x1x.cloudfront.net/images/v2/pencil.png)
10 Answers
Answer this question
This question is in the General Section. Responses must be helpful and on-topic.
Have a question?
Ask Fluther!