[Jaws_ACL]: Fixed another sql issue when using PostgreSQL driver