Quoting the entire query works now.