Today's reminder that MySQL will happily let you believe you're doing everything "right" right up until it doesn't.
I was wiring up a perfectly ordinary paginated query in a Next.js service. Nothing exotic. Prepared statements, placeholders, clean parameter handling. The kind of code you write on autopilot because you've written it a hundred times before.
And then MySQL reminded me again that it is not PostgreSQL.
The offending query looked harmless: