diff --git a/pg4wp/driver_pgsql.php b/pg4wp/driver_pgsql.php index e90e41d..7559985 100644 --- a/pg4wp/driver_pgsql.php +++ b/pg4wp/driver_pgsql.php @@ -173,7 +173,7 @@ $pattern = '/ (?prefix.'posts."ID"', '' , $sql); + $sql = str_replace('GROUP BY '.$wpdb->prefix.'posts.ID', '' , $sql); $sql = str_replace("!= ''", '<> 0', $sql); // MySQL 'LIKE' is case insensitive by default, whereas PostgreSQL 'LIKE' is