Php Why Am I Getting Error In Group By Statement While Using

Php Why Am I Getting Error In Group By Statement While Using