Added missing '$where' variables

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