Use debug_query_string if (nothing better is) available