in reply to Re: generated SQL statement problem (OT)
in thread generated SQL statement problem (OT)

That is actually legal in MySQL: