You have an error in your SQL syntax
Iam facing this problem with my code, how to fix it..
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 'and v.CityID= and v.Availability='1'' at line 1error in select v.*,a.AgencyName,a.Email,a.Mobile,c.CityName,t.Type from vehicles v left join agencies a on a.AgencyID = v.AgencyID left join cities c on c.CityID = v.CityID left join vtype t on t.VtypeID = v.VtypeID where v.VtypeID= and v.CityID= and v.Availability='1'
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 'and v.CityID= and v.Availability='1'' at line 1error in select v.*,a.AgencyName,a.Email,a.Mobile,c.CityName,t.Type from vehicles v left join agencies a on a.AgencyID = v.AgencyID left join cities c on c.CityID = v.CityID left join vtype t on t.VtypeID = v.VtypeID where v.VtypeID= and v.CityID= and v.Availability='1'