Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8530741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:19:11+00:00 2026-06-11T09:19:11+00:00

In my code, I first create the Query Object: <cfset memberData = QueryNew(‘slug,pos,firstname,lastname,email’) />

  • 0

In my code, I first create the Query Object:

<cfset memberData = QueryNew('slug,pos,firstname,lastname,email') />
<cfset temp = QueryAddRow(memberData, #numMembers#) />
<!--- LOOP POPULATES QUERY OBJECT --->
<cfloop...</cfloop>

I can then verify that it has been populated by running the following (which outputs as expected):

<cfoutput query="memberData">
#slug# - #pos#<br>
</cfoutput>

I then try to query the memberData Query Object and all hell breaks loose. If I run:

<cfquery name="members" dbtype="query">
    SELECT slug,pos,firstname,lastname
    FROM memberData
    WHERE slug = #slug#
</cfquery>

I get this error:

Query Of Queries runtime error.
The select column reference [university] is not a column in any of the tables of the FROM table list.

In the output test mentioned above, I can verify that “university” is one of the values in the slug column. Clearly I’m missing something in my approach, but I’m baffled as to what it might be. Any help would be greatly appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T09:19:12+00:00Added an answer on June 11, 2026 at 9:19 am

    Query Of Queries runtime error.
    The select column reference
    [university] is not a column in any of the tables of the FROM table
    list

    Your error was caused by absence of quotes in where clause and nothing else:

    This expression find rows where the value in slug column equals the value in CF slug variable (String):

          WHERE slug = '#slug#'
    

    On the other hand this expression means find rows where value in the slug column equals the value contained in the column named in the CF slug variable (String):

          WHERE slug = #slug#
    

    The most likely cause of why you needed to change to SELECT * is CF query caching. So changing it back now should solve the problem. And always use <cfqueryparam .../> as suggested by “Al Everett”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using EF Code First to create a database on local .\SQLEXPRESS. Among
When using Entity Framework Code First 4.3.1 it is possible to create relationships with
I use Entity Framework code-first. DataBaseName - I want to create a database in
I've written the following code to create a three-column layout where the first and
So, first off here's my code to open the dotx and create a new
I am trying to create an object that is capable of handling query-like conditional
I've create WebAPI in .net (my first). Using this api to get object from
I successfully created database on my local server using Code First, migrated it to
I have a table called Tournaments which is created using the EF code first
Code first: AssetManager mgr = DeviceListActivity.this.getApplicationContext().getAssets(); try { Log.e(Glenn:, address); FileOutputStream fout = mgr.openFd(device/device_address.txt).createOutputStream();

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.