dflow Posted February 20, 2011 Share Posted February 20, 2011 this works SELECT * FROM apartments LEFT JOIN country_list ON apartments.COUNTRY_ID = country_list.CountryID WHERE apartments.ID =4201 this doesnt SELECT * FROM apartments LEFT JOIN country_list ON apartments.country_ID = country_list.CountryID, LEFT JOIN city_list ON apartments.city_id = city_list.CityID WHERE apartments.ID =4201 i want to add several more left joins Quote Link to comment https://forums.phpfreaks.com/topic/228307-multiple-left-join-help/ Share on other sites More sharing options...
dflow Posted February 20, 2011 Author Share Posted February 20, 2011 ok the comma is the problem between the ",LEFT JOIN SELECT * FROM apartments LEFT JOIN country_list ON apartments.country_ID = country_list.CountryID LEFT JOIN city_list ON apartments.city_id = city_list.CityID WHERE apartments.ID =4201 Quote Link to comment https://forums.phpfreaks.com/topic/228307-multiple-left-join-help/#findComment-1177301 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.