knowledge: fix get_kbs_info query result

* Fixes the right query executed in function.

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>