Added missing '$where' variables in plugins

Added missing $where variables in plugins that were causing problems in Publication edit screen and section edit screen.