PDO::query was using an undocumented additional parameter, fixed for compatibility