Due to changes on the db structure modified the sql query to get the descriptor codes