andialbrecht/sqlparse — pull request #100 by rnix (2013-06-17 13:56:13+00:00)
Title: Stop parsing tables at first keyword after "from".

Currently, the parser isn't smart enough to acknowledge the end of the from-clause list so keywords as table names will still fail. But in simple tests, this solution works.
Best-practice: don't use SQL keywords as table names. :)