Skip to content
Discussion options

You must be logged in to vote

The aliases are for the SELECT clause right? One cannot - to the best of my knowledge - use them in a WHERE clause.

I'd've thought you'd've needed to do something like where="lookup_type.is_active=1 AND lookup_value.is_active=1" to disambiguate between the two tables? (untested... I'd give even money on CFWheels not coping with that, and breaking).

That said by the time yer writing SQL into strings to pass to CFWheels methods, you might consider cutting out the middle-man and just make a queryExecute call with the exact SQL you want in it. Not sure CFWheels's monkeying is necessarily adding much here?

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@cfcoder
Comment options

Answer selected by cfcoder
Comment options

You must be logged in to vote
1 reply
@cfcoder
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants