Error group by clause postgresql

Add it to the GROUP BY statement like below

GROUP by products.id, v.id

1 Like