select object_id from acs_magic_objects where name = :name select object_type from acs_objects where object_id = :object_id