This is my list of fields:
$fields = "ID, PropertyID, DateAdded, DateUpdated, RegionName, PropertyType, OtherType, SaleType, Condition, Price, CurrencyName, Title, MainImage, Summary, NoOfBeds, NoOfBaths, NoOfReceptionRooms, Floor, FloorSpace, Furnished, Pool, Garden, CoveredArea, MeasureUnit, Parking, DistanceSea, DistanceAirport, DistanceGolf, DetailNotes, FeaturedProperty, Sold, vrTour, Outbuildings";
And for some strange reason I am getting this error:
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 'Condition, Price, CurrencyName, Title, MainImage, Summary, NoOfBeds, NoOfBaths, ' at line 1
Has anyone ever come accross a problem in the field names, I have ages ago but can't remember how I solved it, and hey, I didn't know about SO then.