Remove 1=1 clause

git-svn-id: https://develop.svn.wordpress.org/trunk@2324 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-02-14 05:16:48 +00:00
parent a5fec00554
commit 2072c977d7
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];