BUG: doctor query 11 syntax error