Query: select cmgmt_class.id as myid from ((cmgmt_class inner join cmgmt_type on cmgmt_class.type_id=cmgmt_type.id) inner join cmgmt_object on cmgmt_class.id=cmgmt_object.class_id) inner join cmgmt_attribute on cmgmt_attribute.id=cmgmt_object.attribute_id where ((cmgmt_type.name="project") and (cmgmt_attribute.name="flags") and (cmgmt_object.value like "%F%")) failed