Here's the solution:

.... where hp.photo_mls_number = substring_index(p.mls_number, '_', -1)

Rick

> -----Original Message-----
> From: Rick Faircloth [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 20, 2008 1:35 PM
> To: CF-Talk
> Subject: RE: Why does this query return this error?
> 
> Oh, duh!  Thanks for pointing that out, William!
> Not the first time I've been caught trying to do that!
> 
> Rick
> 
> > -----Original Message-----
> > From: William Seiter [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 20, 2008 1:31 PM
> > To: CF-Talk
> > Subject: Re: Why does this query return this error?
> >
> > You are using the coldfusion function #listfirst(p.mls_number, '_')# on a 
> > query value rather
than
> a
> > CFvariable.  you will need to find an equivalent way to do 
> > "#listfirst(p.mls_number, '_')#" in
SQL
> > rather than in CF.
> >
> > William
> >
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305763
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to