When you use .add and show all items, if you select a subsection, the SQL statement searches for every item where subsection = selected subsection. But when there are identical subsections, it will result in all of these items. It should just return all items that are = subsection AND category. I could fix that easily in the search option with: LDB.query "SELECT rowid FROM <ctag.add_mode> WHERE subsection = '<local.sub>' AND category = '<local.cat>'" // LDB.query "SELECT rowid FROM <ctag.add_mode> WHERE subsection = '<local.sub>'" But I cant get it working in the base f_Add_generate_descriptions function.