We've seen similar errors in Visual Query on both 2sxc v18.00 and v18.01. In all cases the fix was to upgrade to v18.02.00 or higher. I hope that works for you!