Added Group By clause to query for correct stock