[ bug #1153 ] SQL Error on the VAT main screen (with pgsql)