#8186 memory exhausted problem fix

#8186 issue
This commit is contained in:
Lukas Juhas 2015-05-19 17:16:41 +01:00
parent 0b58a840e2
commit 21bda86baa
1 changed files with 1 additions and 1 deletions

View File

@ -1430,7 +1430,7 @@ class WC_Admin_Post_Types {
$post_ids = array_unique( array_merge(
$wpdb->get_col(
$wpdb->prepare( "
SELECT p1.post_id
SELECT DISTINCT p1.post_id
FROM {$wpdb->postmeta} p1
INNER JOIN {$wpdb->postmeta} p2 ON p1.post_id = p2.post_id
WHERE