Just wanted to let everyone know the problem has been solved.
When I created the "Master Query", which is a Custom Query, I
did not specify what type each field needed to be, so CF just
assumes a type according to the value being placed into the first
field. Let this be a lesson if you plan to merge Queries later, as
I did.
CF assigned a type to a field, that had a number in it, as
LONG. Well, later as I compiled queries, a particular row had a
string value.
Everything was fine until I query the query, and try to
select an integer value :
<cfquery name="qryAllCategoryList"
dbtype="query">
SELECT Category
FROM qryResultsAllCategoryList
WHERE (groupLevel = <cfqueryparam
cfsqltype="cf_sql_integer" value="0"> or
groupLevel = <cfqueryparam cfsqltype="cf_sql_integer"
value="1">)
GROUP BY Category
</cfquery>
The query of queries failed at : groupLevel =
<cfqueryparam cfsqltype="cf_sql_integer" value="0
So the fix is, I have to assign a type to every field in my
Custom Query.
When I build the "Master Query" it should look like this :
<cfset qryResults =
QueryNew("anchor,category,description,expire_date,isgroup,groupLevel,ID,last_updated,parentID,PID,queryString,results,title,URL","varchar,varchar,varchar,varchar,varchar,varchar,varchar,varchar,varchar,varchar,varchar,varchar,varchar,varchar")>
Now each field has its own type, in this case they are all
VARCHAR.
Thanks for everyone's help! I hope I explained the answer
good enough.