I'm trying to pick up the latest record for 6 groups, and I'm using the following Select statement:
SELECT * FROM newproducts LEFT JOIN (suppliers, newsrchGrps) ON (suppliers.supplierName = newproducts.supplierName AND newsrchGrps.groupCode = newproducts.groupCode) GROUP BY newproducts.groupCode ORDER BY newproducts.updated DESC LIMIT 6
which does pick up a total of 6 records from 6 different groups, but for some reason I'm not necessarily getting the latest product in each group.
Anyone any idea what's wrong?