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 types.ID=subtypes.Type_ID)' at line 1 SQL=SELECT subtypes.ID, subtypes.Name FROM mos_vdb_subtypes as subtypes, mos_vdb_types as types where (types.ID= AND types.ID=subtypes.Type_ID)

