A Database Error Occurred
Error Number: 1064
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 'AND roundName != 'Vòng 0' GROUP BY groupId ) AS kq ON r' at line 9
SELECT roundName, r.roundId, r.groupId, maxround FROM tblround r LEFT OUTER JOIN ( SELECT max( pr.roundId ) AS maxround, groupId FROM tblplayerrank pr JOIN tblround r ON pr.roundId = r.roundId WHERE championshipId = AND roundName != 'Vòng 0' GROUP BY groupId ) AS kq ON r.groupId = kq.groupId LEFT OUTER JOIN tblplayerrank pr ON r.roundId = pr.roundId WHERE roundName = ( SELECT roundName FROM tblround WHERE roundId =26 ) AND championshipId = GROUP BY roundId