SELECT m1.`user_id` as `ID`, m1.p1, m2.p2, m3.p3, m4.p4
FROM
(SELECT `user_id`, `meta_value` as p1 FROM `wp_usermeta`
WHERE (`meta_key` = \'firstname-groom\' AND `meta_value` LIKE \'Darren\')
GROUP BY `user_id`) m1,
(SELECT `user_id`, `meta_value` as p2 FROM `wp_usermeta`
WHERE (`meta_key` = \'firstname-bride\' AND `meta_value` LIKE \'Someone\')
GROUP BY `user_id`) m2,
(SELECT `user_id`, `meta_value` as p3 FROM `wp_usermeta`
WHERE (`meta_key` = \'lastname-bride\' AND `meta_value` LIKE \'Cool\')
GROUP BY `user_id`) m3,
(SELECT `user_id`, `meta_value` as p4 FROM `wp_usermeta`
WHERE (`meta_key` = \'weddingdate\' AND `meta_value` = \'12/14/2014\' )
GROUP BY `user_id`) m4
WHERE
m1.`user_id` = m2.`user_id` AND m1.`user_id` = m3.`user_id` AND m1.`user_id` = m4.`user_id`
如有必要,可以使用where-ready函数生成此类查询。函数返回一个用户ID数组