Database error. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'GROUP BY 1 Order By DateCreated DESC' at line 4 Query: [SELECT PollQuestion.QuestionID, Title, Sum(AnswerCount) as PersonCount
FROM PollQuestion
JOIN PollAnswer ON PollQuestion.QuestionID = PollAnswer.QuestionID
WHERE PollQuestion.QuestionID != GROUP BY 1 Order By DateCreated DESC]