### Laravel Version 11.38.x ### PHP Version 8.3.x ### Database Driver & Version _No response_ ### Description @taylorotwell @GromNaN I can confirm that this: https://github.com/laravel/framework/pull/53679 is breaking. Although you thought it was not. With a having clause the `->min(...)` makes the query itself a subquery making the grouped column 'unreadable'. ### Steps To Reproduce Query is an breaking example. My query has 3 joins and other conditions (but breaks in the same way). ``` Product::groupBy('products.id')->having('products.id', '>=', 12345)->min('products.id'); ``` 