Prevent running queries when there are no `$post_ids`.