Assuring invalid SQL-stmt causes an exception when executing a query.