continuation of !1654: fix query bug and fix tornado handlers for older AnalysisProductionClient
Hotfixed on lbvobox316
apologies @fstagni I should have drafted the previous one
BEGINRELEASENOTES
TornadoAnalysisProductionsHandler FIX: Used kwargs for getProductions tornado handler to support older versions of APC and get things working again.
AnalysisProductionsDB FIX: Fixed nasty query bug that only surfaced when querying MySQL (but not SQLite, which is used in tests)
ENDRELEASENOTES
Edited by Ryunosuke O'Neil