>> It would be great if someone would patch db_rewrite_sql() itself to >> warn when it is being used incorrectly. I think the correct behavior I can make that a debug option. Sounds good and simple.