fixed pQuery function to avoid passing null or undefined to underlying mysql query function, since it was KILLING the process...
almost done with simple l10n-friendly email notification infrastructure