Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Thanks, worked for me too! If someone wishes all the options to handle that error, here they are: dev.mysql.com/doc/refman/5.7/en/… Commented Oct 23, 2017 at 4:14
  • this works but only use when you really know that the ANY_VALUE column have same value so it can capture one easily and you get correct results when using with GROUP BY and you really know that only the GROUP BY column have to be specific. Commented May 8, 2019 at 0:18
  • This really helps more than every solution above. Where I'm on a shared hosting cPanel and there's no way to change the sql_mode, I've had to look for workarounds that don't mess up my queries. This way, you keep your query and simply add ANYVALUE(cellname) cellname and voila it works. Commented Jan 10, 2022 at 14:58