我有下面的語句的MySQL Where子句錯誤
$result = mysql_query("SELECT * from rests ORDER BY name asc WHERE flag = '1' LIMIT 0 , 20");
正在以下錯誤
Invalid query: 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 flag = '1' LIMIT 0 , 20' at line 1
我不知道我要去哪裏錯了:(
+1爲最完整的答案:-) – prodigitalson 2010-12-09 06:04:12