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 ' PRIMARY KEY (id), INDEX production_FKIndex1(product_id), CONSTRAINT `p' at line 7