fix lightcurve query for transient