Remove 1=1 clause

git-svn-id: http://svn.automattic.com/wordpress/trunk@2324 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2005-02-14 05:16:48 +00:00
parent a622906bd5
commit 6898b60840
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ textarea,input,select {
if (!$result)
die ("Error in posting...");
$sql2 = "SELECT * FROM $wpdb->posts WHERE 1=1 ORDER BY ID DESC LIMIT 1";
$sql2 = "SELECT * FROM $wpdb->posts ORDER BY ID DESC LIMIT 1";
$result2 = mysql_query($sql2);
$myrow2 = mysql_fetch_array($result2);
$post_ID=$myrow2[0];