Fix confusion between ObjectType and ObjectClass

Per report by Will Leinweber and Peter Eisentraut
Remove quotes around SQL statement in error message