php-sql-parser from http://code.google.com/p/php-sql-parser/