SELECT SQL_CALC_FOUND_ROWS `wp_users` . `ID` FROM `wp_users` INNER JOIN `wp_usermeta` ON ( `wp_users` . `ID` = `wp_usermeta` . `user_id` ) WHERE ? = ? AND ( ( `wp_usermeta` . `meta_key` = ? AND `wp_usermeta` . `meta_value` = ? ) ) ORDER BY `user_login` ASC 