I am just trying to create a table with two foreign keys. The other two tables, users and puzzles, already have primary keys user_id and puzzle_id
CREATE TABLE `bglascoc_puzzle_db`.`comments` (
`comment_id` INT NOT NULL,
`comment` VARCHAR(144) NULL,
`user_id` INT NOT NULL,
`puzzle_id` INT NOT NULL,
PRIMARY KEY (`comment_id`),
INDEX `user_id` (`user_id` ASC) INVISIBLE,
INDEX `puzzle_id` (`puzzle_id` ASC) VISIBLE,
CONSTRAINT `user_id`
FOREIGN KEY (`user_id`)
REFERENCES `bglascoc_puzzle_db`.`users` (`user_id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `puzzle_id`
FOREIGN KEY (`puzzle_id`)
REFERENCES `bglascoc_puzzle_db`.`puzzles` (`puzzle_id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION);
However, I get the 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 '"