An unexpected error occurred.

mysql error: [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 '' at line 1] in EXECUTE("SELECT bftype FROM BW_BuildingXFeatures JOIN (BW_BuildingFeatures) ON (BW_BuildingFeatures.bfid = BW_BuildingXFeatures.BuildingFeaturesID) WHERE BuildingID = ")