Fixed bug when using user defined table name. Thanks to IXEguy for the report.
Fixed bug when using user defined table name. Thanks to IXEguy for the report.

tobimensch/termsql,IXEguy/termsql,tobimensch/termsql,IXEguy/termsql