From 8452c6041dbc2e94cccc17bb39ced07ccf2a5687 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Thu, 25 Feb 2016 19:58:37 +0800 Subject: [PATCH] Remove single quotes --- core/um-permalinks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/um-permalinks.php b/core/um-permalinks.php index 295a70d6..06cd7a2b 100644 --- a/core/um-permalinks.php +++ b/core/um-permalinks.php @@ -241,7 +241,7 @@ class UM_Permalinks { { $full_name = um_user( 'full_name' ); $count = $wpdb->get_var( $wpdb->prepare( - "SELECT COUNT(*) as count FROM %s WHERE meta_key = 'full_name' && meta_value = '%s'", + "SELECT COUNT(*) as count FROM %s WHERE meta_key = 'full_name' && meta_value = %s ", $wpdb->usermeta, um_user( 'full_name' ) ) );