INSERT INTO movie (id, title, desc, released, views, featured) VALUES (\'\', \'title\', \'
\\r\\n description
\\r\\n\', \'2006-12-12\', \'0\', \'0\')
desc is a mysql reserved word. you must use backticks `` with the columns which are reserved words.
INSERT INTO movie (id, title, `desc`, released, views, featured)...
You should avoid using reserved words as column name or must use backticks (``)
The word desc
is a reserved word and must be in backticks when used as a column name.
INSERT INTO movie (id, title, `desc`, released, views, featured) VALUES
-- ...etc...
I'd also advise you not to use desc
as a column name in future as it is confusing and will just cause problems. You could use description
instead, for example.
DESC is a reserved word of MySQL and if you use it for naming consider using `desc`.