knowledge: fix get_kbs_info query result

* Fixes the right query executed in function.

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
Reviewed-by: Jiri Kuncar <jiri.kuncar@cern.ch>