Broken query posting pinned topics - fixes #1836

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