PostgreSQL - query fix in mod_articles_archive 

#3291