Problem with my innerjoin. Help, please

Hello;
I try to write a complicated page and I get an error in my query. I have another question for this request that I can't seem to work, but lets make this one problem at a time.

This is the error I get when you go directly to this page:
Run database query error. [Macromedia] [SequeLink JDBC Driver] [ODBC Socket] [Microsoft] [ODBC Microsoft Access driver] Syntax error (missing operator) in a query expression 'Projects.CategoryID Categories.Name'.
The error occurred on line 12.

This is my code:
<!-it's the query with the error, he manages the project files and either bring them all to the top or only those of the category chosen in another page. ->
< cflock timeout = "10" type = "exclusive" scope = "application" >
< name cfquery = "getProjects" datasource = "#APPLICATION.dataSource #" >
SELECT Projects.Name AS PName, Projects.ProjectID AS ID, Projects.CategoryID
Categories.Name AS CName, categories. CategoryID
PROJECT INNER JOIN categories on projects. CategoryID = categories. CategoryID
< cfif StructKeyExists (url, "CategoryID") >
WHERE categories. CategoryID = < cfqueryparam CFSQLType = "CF_SQL_INTEGER" value = "#URL. "CategoryID #" / >
AND categories. CategoryID = Projects.CategoryID
ORDER BY Projects.Name
< cfelse >
ORDER BY Categories.Name
< / cfif >
< / cfquery >
< cfset rowsPerPage = 6 >
< name = "cfparam URL.startRow' default = '1' type 'number' = >"
< cfset totalRows = getProjects.recordCount >
< cfset EndRowOptional = min (URL.startRow + rowsPerPage - 1, totalRows) >
< cfset startRowNext = EndRowOptional + 1 >
< cfset startRowBack = URL.startRow - rowsPerPage >
< / cflock >
<! - end project file code - >
<!-this code runs the success to update your #record #->
< isDefined ("URL.ID") cfif >
< name cfquery = "zlnbbXX" datasource = "" #APPLICATION.dataSource # "LignesMax ="1">"
SELECT Projects.Name AS PName, Projects.ProjectID AS ID, Projects.CategoryID
WHERE ProjectID = #URL.ID #.
< / cfquery >
< / cfif >
<! - complete code - >
< head >
< / head >
< body >
<!--> code for success update record
< cfif isDefined "(URL. RecordID") >
< cfoutput query = "zlnbbXX" >
< font color = "# 990000" face = "Verdana, Arial, Helvetica, sans-serif" size = "2" > < b > updates have been applied successfully to: < /b > < br > < u > #PName # < /u > < / police > < br > < / cfoutput > < / cfif >
<!--> end success
<!-records and next / prev nav-->
< cfoutput >
Display of < b > #URL.startRow # < /b > < b > #endRow # < /b > < b > #totalRows # < /b > Folders < / make >
< cfset urlVars = "" > "".
< cfif startRowBack GT 0 >
< cfset urlVars = ' StartRowOptional = #startRowBack #">".
< / cfif >
< structKeyExists cfif (url, "categoryID") >
< cfset urlVars = urlVars & "categoryID = #categoryID #" > ".
< / cfif >
< a href = "" #CGI.script_name #? #urlVars # "class ="nav"> < Previous Records < /a >"

< cfset urlVars = "" >
< cfif startRowNext lte totalRows >
< cfset urlVars = ' StartRowOptional = #startRowNext #">".
< / cfif >
< structKeyExists cfif (url, "categoryID") >
< cfset urlVars = urlVars & "categoryID = #categoryID #" > ".
< / cfif >
< a href = "" #CGI.script_name #? #urlVars # "class ="nav"> next > < /a >"
< / cfoutput >
<!-end next / prev code-->
<!-edit-> documents
(< cfloop query = "getProjects" StartRowOptional = "" #URL.startRow # "EndRowOptional =" #endRow #"> < cfset class = iif (getProjects.currentRow mod 2 eq 0,)" "DataUn'", "' DataB'") >
< cfoutput >
#PName #.
#CName #.
< name of the form = "myform" action = "Action.cfm" method = "post" > "
< input type = "hidden" name = "ID" value = "#ID #" >
< input type = "submit"... More code here >
< / cfoutput >
< / cfloop >


This query does a few things.
1. If you go directly to this page, it shows all the projects title so you can next / previous through records and change the recording you want.
2. I'm doing so that if you come from another page that modifies all categories for this section, it will only bring up projects in this category. He has done this, but when you next / prev through it, it shows all the records.
3. Once you add or update a record, where you are returned to this page, he tells you: "your updates were successful for the project #title #

I've commented the code, I know there are some questions here and I need help their knowledge.

CFmonger

In the query "getProjects.

Missing comma between, Projects.CategoryID Categories.Name AS CName, (no comma after CategoryID)
The AND condition in the query is redundant, this is done in the join condition.
For problem 2 without seeing the actual url, I can't help. But I would say that the catergoyid is not there

There is no from clause in the query 'zlnbbXX'

Ken

Tags: ColdFusion

Similar Questions

  • PROBLEM WITH NETBOOK! Help, please

    Hello guys,.

    I'm having a serious problem with my HP mini 210 netbook 1028TU.

    I formatted my hard drive to create two different partitions, about a month ago and installed Windows 8 Preview Release from the Microsoft Site
    After 2 weeks of use, once Windows defender detected and quarantined 4 Trojan virus. When I saw that I tried to remove them, while eliminating the netbook suddenly stopped without any BSOD or a message.

    I tried to restart, but now it just won't start, nothing happened since the beginning of the start screen. So I did a USB bootable windows7 to reformat the hard drive and do a clean install of windos7 Starter as it was over early. It went well and I deleted the partitions and developments and begin the installation. During Installation when it reaches 35%, he stopped and showed windows cannot be installed. I tried again, but now he hung up while he was showing "the installation program starts.

    Now when I start my PC it shows: -.

    Your PC needs to be repaired
    and an unexpected error has occurred.

    Error code: 0xc0000034

    In addition, I ran test drive by the bios and it stuck and showed "Replace hard disk 1" in RED

    Please guys help me I really need for my netbook

    Fix.

    Removing and reinstalling the drive is a troubleshooting step to determine if your hard disk is damaged.

    Do that first.

    If no joy, then the hard drive will be replaced by a new to make you a netbook to a usable state.

  • I HAVE WIN 7 64-BIT, MOZILLA FIREFOX IS MY BROWSER HASVING PROBLEMS WITH JAVA CAN HELP PLEASE

    I HAVE WINDOWS 7 64 BIT LAP TOP, I'M WITH MOZILLA FIRE FOX AS MY BROWSER, HAVING PROBLEMS WITH JAVA... WHICH SHOULD I USE? ALSO CAN I HAVE THE WINDOWS PHOTO VIEWER TO OPEN FILES

    First; There, please do not type in uppercase.  It is considered rude and make your post less readable.

    The version of Java to use depends on the browser.  Firefox is a 32-bit browser therefore uses the 32-bit version of Java.
    Internet Explorer, for example, has a 32-bit and 64-bit version in Windows 7, the two versions of Java may apply depending on whether you are using.

    The Windows Photo Viewer can open different types of graphic files, what is the problem?

  • After the recent Firefox updates prevent links to several websites to operate while it doesn't have this problem with other browsers - help please.

    Since a recent update of Firefox links to several Web sites is no longer working. They used to be fine and I liked Firefox. The problems do not exist with other browsers such as Internet Explorer, Google Chrome. Specifically, on talktalk.co.uk news links do not work, any more than those in 'my account '. On Barclays.co.uk the link to print my statement works no-same on MBNA.com
    There are several solutions proposed around the internet, but all are complex, so far none have worked and I don't see why I should have to make the suggested adjustments. Firefox has been great - now, it is not. The problem seems to be the update. Please help me get my Firefox where it should be.

    AFAICT then who are perfectly normal links on the news page

    The http://www.talktalk.co.uk/ opens if I click the guide Link TV/news on the https://sales.talktalk.co.uk/ page.

    If I right click on a link and use inspect element to open the Inspector then I see that there is an event onclick on the links (annex 'ev' button), so make sure that you are not blocking JavaScript.

    Start the computer in safe mode Windows with network support (on the startup screen, press F8) as a test to see if that helps.

  • Problem with export! Help, please

    Hello

    I am currently working on my new project in Redcode 4.5 k shoot and I got in big trouble export my movie.

    I tried to export the movie to the H.264 format / HDTV 1080 p 25f and there was NO noise or a sound terrible when I looked the exported movie!

    Can it be a problem that I copied a number of sequenzes varius in a sequence? I did it because I wanted to have a sequence where I can put the pieces together.

    Maybe that's the problem!

    Please help me!

    M

    Guten Tag,

    Am fantastischen an meinem neuen Projekt und beim Exportieren ist folgendes aufgetreten problem:

    ICH Versuche in first Photo aus einer zu exportieren sequence das mit dem Vorgabe Format H.264: HDTV 1080 p 25f dann erhalte ich einen Film mit entweder Bel your oder mit einem hohen Pfeiffen.

    DAS Filmmateriao das ich wurde auf einer bearbeite redone Redcode Codec quality 4.5 k.

    Kann're breast dass der nicht ist weil ich fertig einzelne possible export sequences kopiert habe und einer neuerstellten sequence zusammengefügt habe, eine quasi sequence as scenes standing habe um sie fertig sleeps aus the other scenes-sequences zusammenzustellen.

    Ware toll wenn someone could help!

    Danke

    M

    Hello! Welcome to the forums here at Adobe!

    As long as you can hear the sound when you play through your final sequence, you should have no problems to export as long as your audio options are correctly set in your export Panel. Nesting of the sequences that you have described is a very common task and will not at all affect your audio files.

    Make sure that your "Export the Audio" checkbox is checked in the window of your export. If this isn't the case, then that would explain your problems. If it is checked, then there may be something more deep as the cause, in which case it would be helpful if you could post us screenshots of your table of sound mixing and the head section of your audio tracks in the timeline panel.

    Also make sure that you're using Adobe PrPro 5.5 and that you have all the updates correct, including the RED importer, as the new RED files do not work in older versions of first. If files were shot on the RED Epic, sound doesn't work at all in native file (known bug) first and so you will have to use program Cine - X RED to export audio files to make separately and synchronize with your video. However, you would never get audio in your timeline at all, and so I think you would have noticed this problem before that you have to export, so I think that's not your problem.

    Good luck and report what you find with your export settings!

  • BlackBerry sudden Z10 and serious problem with Z10 NEED HELP Please

    I have a z10, one of the first who came out in Toronto (if it is one)
    (difference), a few hours ago, I fell into a serious and sudden
    problem.

    I was able to swipe left and right between the pages of apps, even fall down
    Since the Summit, but I cannot open anything, not even not making a call or settings
    Options.

    Any time I try, for a fraction of a second, it looks like its about load
    something then nothing. (image slides to the right quickly and goes back
    each attempt)

    So I first did a reset, same problem, so I did a battery pull (15 minutes) and the problem is.

    I tried via USB to do a backup on blackberry Manager and maybe do a
    Re - install everything, but when I was invited to the password
    my camera on my PC, it told me that it was (I use a wrong password
    This blackberry on my computer 4-7 days a week, twice a day sometimes for an
    year and I have never miss typed my password, nor have I changed it)

    After trying everything to make sure that the first letter was maybe upper/lower
    cases, even my other possible phone password, nothing worked...

    On the 5th unsuccessful attempt my phone prompted me to type "blackberry", which
    I did, then I typed my password on my phone that I type in about 15 times
    one day because I put my phone in a lock in 5 minutes and has always said that he was wrong... I'm no attempt of 9/10 on and lost
    for options.

    Please if anyone can give me any suggestions, or even how do I back up my phone
    and now, or I have a previous backup of whipe form 4 months ago that I
    I wouldn't come back in the worst cases.

    Thanks in advance for your help

    Well... If you are in 9 out of 10 here and you don't mind not to restore your device, then enter the password again once and then the device should enter the device wipe mode. That will reset your device to factory setting and then you can start fresh by reloading your backup made the earlier

  • Problem with password reset link - "there is a temporary problem with the service. Please try again. If you continue to receive this message, try again later. »

    Hello, account Windows Live from my wife was hacked a week ago and has been used to send many spam emails. As a result, his account has been disabled or closed (we are not sure). Whenever she asks to reset a password and a link sent to a different e-mail account, when she clicked it gets this message 'there is a temporary problem with the service. Please try again. If you continue to receive this message, try again later. "She is tried repeatedly, but get the same message. Someone knows how to go beyond that, so she can recover her account? Thank you.

    Hello BBB34,

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums to www.windowslivehelp.com.

  • cannot delete photos with indicator.  help, please.

    I can't delete photos with indicator.  help, please. Thank you. Dick

    Can't stop without context and details

    What version of the OS (you say OS X 10.8.5 - is that correct?) and iPhoto or PHotos?

    What has changed since it worked?

    LN

  • How can I add an ID related when I get this message (there is a temporary problem with the service. Please try again. If you continue to receive this message, try again later.) ?

    How can I add an ID related when I get this message (there is a temporary problem with the service. Please try again. If you continue to receive this message, try again later.) ?

    Hello

    an answer your other thread

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-networking/why-do-i-keep-getting-your-Windows-Live-ID-cant-be/268ff99c-E459-E011-8dfc-68b599b31bf5?page=1&TM=1301396733390#footer

  • Registration media Cetner Netflix error - "" ACCOUNT ERROR: there is a problem with your account. "" Please sign in again'

    original title: error problems Media Center Pinterest account

    Windows Media Center is not allowing me to connect to my netflix account. I get "ERROR ACCOUNT: there is a problem with your account." Please sign in again". I log out and try to connect again and get the same error on several machines.

    Can I use IE9 to see netflix with no problems.

    I called Netflix to see if it was something wrong with my account and they said that everything was in order and that they were getting a number of calls on the same subject. They also said that they have no connection with the plug-in and it is managed by Microsoft and sent me to this website.

    So now I'm here.

    Anyone else having these issues? Anyone know of a fix?

    Thank you.

    There was an update that went down yesterday but I have not tried Netflix on WMC until this morning and it works!  I also noticed that it works much faster than before.  So, if its on the side of Netflix or Microsoft side or together, I'm glad something worked!   Thank you!!  PS next time please better coordinate.

  • Payment error - there is a problem with your payment. Please try again later or contact Adobe technical support

    Can not buy single images because... "Payment error" "there is a problem with your payment. Please try again later or contact Adobe technical support. »

    There are thousands in the account and I can't buy a 69P. I tried different cards, but the problem persists.

    This is the fourth time that this happens. What a complete farce.

    Club Photo dollar worked superbly. Adobe bought and forced some of us here at a lower system which also has problems such as above.

    Why do we have the option to purchase credits? It is trying to force us on a costly monthly subscription?

    Online support is useless. Very slow. Their solution is to support ring technique. Thereafter.

    Technical support is entrusted to a country where English is not their first language. Not just on the other side.

    Hello

    Sorry to hear you had questions, make a purchase.

    It seems that your card details have been changed successfully and a new order has processed.

    Kind regards

    Bev

  • "Page not found" problem only with firefox. Help, please

    I get the error "page not found" only with firefox. Works fine on Chrome!

    I don't really know what causes this problem.

    Help, please.

    My Web site address:

    http://laberintowines.CL/

    Thank you very much.

    Please delete browser cookies, then check if still the same issue reset preferences.

    The site works fine on my end with firefox and other bowers:

    Thank you

    Sanjit

  • Problem with adding a background - please help!

    Hi all

    I try to create my first BB app and run into a few problems with the addition of a background image on my screen.  I try to activate the background on my request without using the class BackgroundFactory I need this works for older BB models.

    I use EncodedImage so that I can to scale the context in which any size of BB.  I am aware of the loss of the aspect ratio, this isn't a problem for me.

    Here is my code:

    The background image.
    backgroundImage = EncodedImage.getEncodedImageResource("img/image.png");
           
    int currentWidthFixed32;
    int currentHeightFixed32;
    int requiredWidthFixed32;
    int requiredHeightFixed32;
    int scaleXFixed32;
    int scaleYFixed32;
           
    Get the dimensions of the current image in fixed-point number
    currentWidthFixed32 = Fixed32.toFP (backgroundImage.getWidth ());
    currentHeightFixed32 = Fixed32.toFP (backgroundImage.getHeight ());
           
    Get the dimensions of the image necessary in fixed-point number
    requiredWidthFixed32 = Fixed32.toFP (Display.getWidth ());
    requiredHeightFixed32 = Fixed32.toFP (Display.getHeight ());
           
    Calculate the scale factor
    scaleXFixed32 = Fixed32.div (currentWidthFixed32, requiredWidthFixed32);
    scaleYFixed32 = Fixed32.div (currentHeightFixed32, requiredHeightFixed32);
           
    Resize the image
    backgroundImage = backgroundImage.scaleImage32 (scaleXFixed32, scaleYFixed32);
    Imagearriereplan = backgroundImage.getBitmap ();

    Display display = new MainScreen();

    VerticalFieldManager verticalFieldManager = new VerticalFieldManager)
    VerticalFieldManager.USE_ALL_WIDTH |
    VerticalFieldManager.USE_ALL_HEIGHT |
    VerticalFieldManager.NO_HORIZONTAL_SCROLLBAR |
    VerticalFieldManager.NO_VERTICAL_SCROLLBAR |
    VerticalFieldManager.NO_HORIZONTAL_SCROLL |
    VerticalFieldManager.NO_VERTICAL_SCROLL) {}

    Override the paint method to draw the background image.
    {} public void paint (Graphics graphics)
    Draw the background image, then paint.
    graphics.drawBitmap (0, 0, backgroundBitmap.getWidth (), backgroundBitmap.getHeight (), Imagearriereplan, 0, 0);
    Super.Paint (Graphics);
    }
    };
    Add the handler to the screen.
    mainScreen.add (verticalFieldManager);
           
    VerticalFieldManager vfm2 = new VerticalFieldManager)
    VerticalFieldManager.NO_HORIZONTAL_SCROLLBAR |
    VerticalFieldManager.VERTICAL_SCROLLBAR |
    VerticalFieldManager.NO_HORIZONTAL_SCROLL |
    VerticalFieldManager.VERTICAL_SCROLL);
           
    verticalFieldManager.add (vfm2);
           
    The LabelField will be visible through the transparent image.
    LabelField labelField is new LabelField ("is a label");.
    ButtonField buttonField = new ButtonField ("asdf");

    Add the fields to the Manager.
    vfm2. Add (labelField);
    labelField = new LabelField ("this is a label");
    vfm2. Add (labelField);
    labelField = new LabelField ("this is a label");
    vfm2. Add (labelField);
    labelField = new LabelField ("this is a label");
    vfm2. Add (labelField);
    labelField = new LabelField ("this is a label");
    vfm2. Add (labelField);
    labelField = new LabelField ("this is a label");
    vfm2. Add (labelField);

    vfm2. Add (buttonField);
    buttonField = new ButtonField ("asdf2");
    vfm2. Add (buttonField);
    buttonField = new ButtonField ("asdf3");
    vfm2. Add (buttonField);
    buttonField = new ButtonField ("asdf4");
    vfm2. Add (buttonField);
    labelField = new LabelField ("this is a label");
           
    Tap on the screen.
    pushScreen (mainScreen);

    I want the "image.png" to act as a 'real' background, however, when I run the above code, the image.png appears in the form of the background, but when I scroll down, the background scrolls as well, and I see a white space.  I want to have "image.png" would you like the background permanently and add another manager who would be scrolling if scrolling is required.

    What I'm doing wrong here?  Why I can't see the vertical scroll bar and why the background is not scrollable?

    Any help is appreciated!

    See you soon!

    Make sure that you set the FullScreen.DEFAULT_MENU property - this will give you the default system menu items.

    You add your menu items by substituting makeMenu().

  • I can't call anyone on Skype, he said only: "problem with recording device" help?

    Could someone help me? my lack of Skype let me call anyone, when I try to call or answer a call it comes a message saying "problem with recording device"-does anyone know how to fix this help please!

    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?OS=4158&LC=no&cc=no&DLC=no&sw_lang=&product=7264...

    You can install this "driver - Lyd" (Realtek High-definition-lyddriver (HD))

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-135685-1&CC=no&DLC=no&LC=No... =

  • Satellite M40X - big problems with Sims 3 - help with disk drives!

    Hello
    I recently bought the sims 3 and unfortunately an error message appears saying "Disk authentication failure" I noticed after calling EA games and reading through many forums that there was a problem evident with laptops Toshiba and their ability to play the sims 3 (disk DLA).
    I did like the forums all recommended, and I have disabled the DLA drive, uninstalled the sims and restarted the computer. Not only could I not play the sims or re - install, but my computer did not recognize even the hard drive, he kept saying 'bad volume' etc.
    I got the sims on the computer and then re-enabled the DLA drive, causing my computer to close and show a major error on a blue screen.

    I then turned the computer back on, and it does not recognize the disc sims 3 more... It recognizes the other placed disks in the cd-rom drive... But now when I put the sims 3 in the player and enter my computer to open it it tells me to insert a disc into the cd player...

    My questions are the following...

    A.) how can I get my hard drive to recognize the disc sims being in the drive

    (B) once this problem is solved, how can I go about installing and using the sims 3 without disabling the DLA, which proved detrimental drive.

    (C.) other problems with computers laptop toshiba have turned around an individual driver... Metisha or something? My driver's - VOB COMPUTERSYSTEME GMHB
    Or something to that effect, which means that it has nothing to do with the DLA drive.

    For the person who can help me, that would be so so appreciated...

    Thank you

    Please e-mail me the answer incase I can't come on the forum to work... - [email protected]

    THANKS AGAIN!

    Hello

    Please take a look in this thread:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=44255

    This isn't a problem or issue of laptop but the Sims 3 game problem
    It has been fixed in version 1.2.7

    Maybe you need to download all the patches and updates the game for you!

  • Problem installing the program. help please.

    Good day everyone,

    I try to install iTunes. Here's the mesg: there is a problem with this installation package. A program required for this install to complete could not be run. Contact your personal support provider or packaging.

    then a new massege appears saying: Installer a insuficient privileges to modify the file C:\Program Files\Quicktime\QTInfo.exe.

    I also try to install firefox, but after I restarted my computer the icon become currupt saying the program was chnge or displaced.
    even in ventrilio, he is a voice chat for online games. It will install, but after, the icon becom currupt or something

    and another problem I had is when I try to uninstall a program a message will appear saying: I have no Annie sufficient to remove or modify this option. but im in my admin account on my laptop.

    I don't know what to do, I tried almost everything I know, even make F8, I tried to use: last known good config or repair your computer.

    Please help me, I can't install anything in my laptop.

    Thanks... x)

    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/threads

    Kindly forward your question in the correct Forum for Vista programs on the link above.

    See you soon. Mick Murphy - Microsoft partner

Maybe you are looking for

  • How to stop printing lines that overlap vertically?

    Most of the sites, such as newspapers, live nesting of the characters, that prevent a correct reading of the sites, or prevent access to the sites I want to access. I recently started using Firefox again, after experiencing problems with Chrome 16. T

  • Activity tab...

    I have a semi off topic question related to this forum.  When I log in and click the activities tab, I see the last three sons that I started. I don't see any of the other threads I started well.  Is it possible to see all the threads I started?

  • Big problem with voice XT1068

    Hello! Sorry for my English not good! In my XT1068, I have a big problem with the voice: I set up the volume to hear (after call to answer etc.) other different Max-> always I hear MAX Volume headset (no helmet)! Next-> low volume - but next call...

  • Looking for USB DAQ for AO using the external sample clock

    Hi all I'm looking for a cheap solution for the acquisition of data to select the AO using an external digital signal as sample clock, and I just realized that the USB-6001 is not a good candidate. Please someone remind the cheapest USB version for t

  • My genuine Window Vista could not search for the new update, or errors are: Code 80073712

    My genuine Window Vista could not search for the new update, or errors are: Code 80073712