We have made extension using Kickstarter. On DB we have lots of items with the same pid
element. We would like to display on list, only first item based on pid
. For example:
PID 1
- record 1
- record 2
- record 3
PID 2
- record 14
- record 15
- record 16
PID 3
- record 21
- record 22
- record 23
How to limit displayed items on list to only first elements: record1, record 14, record 21?
To select we use pi_exec_query
function.