PHP中的MySQL语法错误

use*_*016 2 php mysql

$query = "INSERT INTO textbooks (uid, title, edition, author, isbn, condition, description, photo) VALUES (9, 'q', 'a', 'b', 'c', 'd', 'e', '$extension')";

$result = mysql_query($query) or die('Could not connect: ' . mysql_error());

Could not connect: 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 'condition, description, photo) VALUES (9, 'q', 'a', 'b', 'c', 'd', 'e', '.jpg')' at line 1
Run Code Online (Sandbox Code Playgroud)

我一直在收到一个MySQL语法错误,但我不能为我的生活弄清楚什么是错的.我放置随机变量,字符串和int只是为了测试,但它不起作用.

  1. 标题,版本,作者,isbn,条件,描述,照片都是varchars
  2. uid是一个int
  3. 描述是文字

Mil*_*ada 5

condition是mysql中的保留字.使用`condition`