Fix unwanted space before AND returned by limit_to_tables(). Thanks to Alex Wang for the report.