select object_type from attachments, acs_objects where attachments.object_id = :object_id and attachments.item_id = :attachment_id and attachments.item_id = acs_objects.object_id select url from fs_urls where url_id = :attachment_id