With a complex to

Clause mysql / It will throw an text and max id in where clause to

But it in clause