Fix sql error in computer and printer search. closes #2332