# posts\_groupby (ok)

```
add_filter( 'posts_groupby', 'my_posts_groupby' );
function my_posts_groupby($groupby) {
  global $wpdb;
  $groupby = " {$wpdb->posts}.ID ";
  return $groupby;
}
```
