Fixed bug in cfg_doctor_positions SQL query

Signed-off-by: plamen911 <plamen@lynxlake.org>