Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND d.Id=c.Id GROUP BY 1 ORDER BY d.Timestamp desc limit 0, 20' at line 2