select attribute_id from acs_attributes where object_type = :object_type and attribute_name = :attribute_name select * from acs_attributes where object_type = :object_type and attribute_name = :attribute_name