SELECT `wp3_users` . `ID` , `wp3_users` . `user_login` FROM `wp3_users` INNER JOIN `wp3_usermeta` ON ( `wp3_users` . `ID` = `wp3_usermeta` . `user_id` ) WHERE ? = ? AND ( ( `wp3_usermeta` . `meta_key` = ? AND CAST ( `wp3_usermeta` . `meta_value` AS CHARACTER ) LIKE ? ) ) ORDER BY `user_login` ASC 