GROUP_CONCAT query parser problem

Hi
I receive this error with query in fields.ini file:
Here is sql entry in question:
I found a topic with similar question and I remade my query to be similar as one in that topic but error keeps showing up.
This query works in phpmyadmin.
I receive this error with query in fields.ini file:
- Code: Select all
Fatal error: Failed parsing SQL query on select: SELECT a.*, GROUP_CONCAT(c.Description SEPARATOR ', ') AS Descript FROM RaceAnalysisLapInformation a LEFT JOIN RaceAnalysisLapInformationEvents b ON a.Id=b.Lap LEFT JOIN LapEventType c ON b.Event=c.Id GROUP BY a.Id . The Error was Parse error: Unexpected token "as" on line 1 SELECT a.*, GROUP_CONCAT(c.Description SEPARATOR ', ') AS Descript FROM RaceAnalysisLapInformation a ^ found: "AS" in /gpro/xataface/lib/SQL/Parser.php on line 1752
Here is sql entry in question:
- Code: Select all
__sql__ = "SELECT a.*, GROUP_CONCAT(c.Description SEPARATOR ', ') AS Descript FROM RaceAnalysisLapInformation a
LEFT JOIN RaceAnalysisLapInformationEvents b ON a.Id=b.Lap
LEFT JOIN LapEventType c ON b.Event=c.Id GROUP BY a.Id"
I found a topic with similar question and I remade my query to be similar as one in that topic but error keeps showing up.
This query works in phpmyadmin.