我的查询在这里有什么问题?这个SQL查询有什么问题? (MySQL错误)
mysql_query("SELECT * FROM admin_nav1 WHERE Active = 'YES' AND WHERE LinkedID = '$WID' ORDER by 'OrderSet' ASC") 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 'WHERE LinkedID = '6' ORDER by 'OrderSet' ASC' at line 1