What's wrong with this inner join query?

Posted on 2012-08-13
Last Modified: 2012-08-13
Here's my query:

select,, songwriting_receipts.contestant_id, songwriting_receipts.contest_end_date from registration inner join on songwriting_receipts.contestant_id =";

The message that I keep getting is:

1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'on = songwriting_receipts.contestant_id' at line 2

I've played with it and I can't figure out what I'm missing. Thoughts?
Question by:brucegust
    LVL 25

    Accepted Solution

    you are missing the second tablename ...

      from registration inner join songwriting_receipts
        on songwriting_receipts.contestant_id =

    Author Comment

    Got it!


    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
    I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to count occurrences of each item in an array.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now