posts helper: get/reset query