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

Conflicts:
	hook.php