Ddo the same thing there, find:

$conditions[] = "$field LIKE '%/$element/%' ";

Add above

$element = zen_db_input($element);