Fixed a typo in PG Query Generator