I am making a VERY COMPLEX sql query pulling from 12 different tables to search for Real Estate...
In my advanced search, if they want to limit to one or more specific types of properties, the query needs to perform like:
SELECT * FROM BLAH WHERE blah=blah AND blah2=blah (OR blah3=blah3 OR blah4=blah4) LIMIT 10"
Something like this...
Basically, what I need to know is, the area in which I have enclosed by parenthesis, needs to be several items with OR conditionals whereas the rest need to be AND...
What I have tried so far the OR over rides the AND and it will pull up every property that matches an OR conditional item.
How can I have the query execute the entire set of OR statements included with the rest as an AND?