Php Mysql Query Returns Wrong For Grouped Data Stack Overflow

Php Mysql Query Returns Wrong For Grouped Data Stack Overflow