[PHP-DB] mySQL query syntax error

2009-11-14 Thread Ron Piggott
I am getting the following error message: #1054 - Unknown column 'customers.email' in 'order clause' from the query below --- I don't understand why. Would someone help me please? Ron SELECT 'first_name', 'last_name', 'email' FROM ( ( SELECT `firstname` , `lastname` , `buyer_email` FROM `

Re: [PHP-DB] mySQL query syntax error

2009-11-14 Thread Ron Piggott
I found the problem. The first subquery needed "AS" aliases. I am learning more of what mySQL is capable of and appreciate the help. Ron -Original Message- From: TG To: ron.pigg...@actsministries.org Subject: Re: [PHP-DB] mySQL query syntax error Date: Sat, 14 Nov 2009 07:17:53 -0500