Extends a query object by adding published and visible article criteria