Arantor is right: no need to do the query if oldTopicDays is not used at all

Signed-off-by: emanuele <emanuele45@gmail.com>