FWIW, the SQL from that Query-Flatting doc you link to looks weird. I hesitate to write *incorrect*, since I'm no expert, but `WHERE="1"` and `AND="1"` look suspicious to me. Wasn't the LHS of the = omitted?
FWIW, the SQL from that Query-Flatting doc you link to looks weird. I hesitate to write *incorrect*, since I'm no expert, but `WHERE="1"` and `AND="1"` look suspicious to me. Wasn't the LHS of the = omitted?