This is at least inconsistent with the INSERT statement further up which also gets a boolean $enabled.