__SQL_GET_INTEGER(id_catalog_wrapper,
"SELECT C.id FROM co_%s_%s AS C, co_%s_catalog_type AS CT "
"WHERE C.id_item=%d and C.deleted=0 and C.id_catalog_type=CT.id "
" and CT.deleted=0 and CT.parent_class='%s' and CT.class_name='%s'",
par_area, catalog_class, par_area,
par_id,
catalog_class, par_class)
__CREATE_JS_FROM_INTEGER(id_catalog_wrapper)
__RETURN_INTEGER(id_catalog_wrapper)