Yes. Versions of MySQL previous to version 4 (or is it 4.1?) do not support subqueries. Most web hosts still only offer version 3.x of MySQL. You could complain to your host and perhaps they'll upgrade or offer to let you use a different server, but that's sort of unlikely in a shared hosting environment. =\ One of the many reason VPS Accounts are so much cooler then shared hosting.
HTH, Jordan Adrian Lynch wrote: >But what's wrong with it? Is it the sub selects? > >Ade > >-----Original Message----- >From: Jordan Michaels [mailto:[EMAIL PROTECTED] >Sent: 24 March 2005 15:26 >To: CF-Talk >Subject: Re: MySQL question > >Try Query of Query - or ask your host to upgrade to version 4.x of >MySQL. Or... try a PostgreSQL database. > >-Jordan > > >Cutter wrote: > > > >>The following query is not allowed using my hosts version of MySQL: >> >><cfquery name="GetCustomer" datasource="#Request.DS#" >>username="#Request.user#" password="#Request.pass#"> >>SELECT Customer_ID FROM customers >>WHERE Customer_ID = (SELECT Customer_ID FROM order_no >> WHERE Order_No = #Order_No#) >>AND Customer_ID NOT IN (SELECT Customer_ID FROM users) >>AND Customer_ID NOT IN (SELECT Customer_ID FROM order_no >> WHERE Order_No <> #Order_No#) >>AND Customer_ID NOT IN (SELECT Customer_ID FROM account) >>AND User_ID = 0 >></cfquery> >> >>Any ideas how to rewrite this? >> >>Cutter >> >> >> >> >> -- Warm regards, Jordan Michaels Vivio Technologies http://www.viviotech.net/ [EMAIL PROTECTED] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199891 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54