hi. i have a query with 5 UNIONs (6 SELECTs). it runs fine unless i add ORDER BY and then it fails with “Lost connection to MySQL server during query”. it is reproducible.
if i run the same query from MySQL commandline, it works fine.
i played around with it a little bit and there seems to be somehow dependent on the number of UNIONs and the number of JOINs in each SELECT. i don't have a complete explanation, hopefully you can figure it out. 🙂
thanks!
SQLyog v9.32 GA, Windows XP 2002 SP3, 3GB RAM.