这个MySQL查询有什么问题?子查询中的MySQL语法错误
$result = mysql_query("SELECT did FROM publications where group IN
(SELECT s_group FROM subscriptions where uid1='$id')") or die(mysql_error());
我得到语法错误:
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 's_group FROM
subscriptions where uid1='34846')' at line 1
由于[语法错误的可能重复在MySQL中使用保留字作为表或列的名称](http://stackoverflow.com/questions/23446377/syntax-error-due-to-using-a-reserved-word-as-a-table-or -column-name-in-mysql) –