SQL errors in NAV 3.4