I’ve a MySQL statement, generated by doctrine which gives an 1064 error. When breaking down the whole SQL I found the error was specific to one table called group. To me the query looks fine maybe a more skill ful eye on sql statement sees this?
The error:
#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 'group ( id INT AUTO_INCREMENT NOT NULL, name VARCHAR(150) NOT NULL, creationdate' at line 1
The statement:
CREATE TABLE group (
id INT AUTO_INCREMENT NOT NULL,
name VARCHAR(150) NOT NULL,
creationdate DATETIME NOT NULL,
deleted TINYINT(1) NOT NULL,
PRIMARY KEY(id))
ENGINE = InnoDB;
GROUP is a MySQL reserved word, rename this table or use backticks (`) –