Unquoted SQL.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1232 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-05-05 08:18:30 +00:00
parent 348dbc769b
commit 0ef9bfe6db
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ function has_meta($postid) {
return $wpdb->get_results("
SELECT meta_key, meta_value, meta_id, post_id
FROM $tablepostmeta
WHERE post_id = $postid
WHERE post_id = '$postid'
ORDER BY meta_key,meta_id",ARRAY_A);
}