If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Left Join returning a Syntax Error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-21-09, 19:20
Schweppesale Schweppesale is offline
Registered User
 
Join Date: Jun 2009
Posts: 33
Left Join returning a Syntax Error

was wondering what's wrong with the following code phpmyadmin is returning "#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 'LEFT JOIN jos_jt_banner_clicks ON (jos_jt_banners.id = jos_jt_banner' at line 11"

Code:
SELECT jos_jt_banners.id
                , jos_jt_banners.title
                , jos_jt_banners.img_location
                , jos_jt_banners.impressions
                , jos_jt_banners.start_date
                , jos_jt_banners.expiration_date
                , jos_jt_banners.published
                , jos_jt_banners.finished
                , jos_jt_banner_clicks.id
                , jos_jt_banner_clicks.banner_id
            LEFT JOIN jos_jt_banner_clicks ON
           (jos_jt_banners.id = jos_jt_banner_clicks.banner_id)
Reply With Quote
  #2 (permalink)  
Old 12-21-09, 19:33
Schweppesale Schweppesale is offline
Registered User
 
Join Date: Jun 2009
Posts: 33
doh, I forgot to use FROM
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On