Details
- 
    Type:Bug 
- 
    Status: Done/Fixed
- 
    Priority:Trivial 
- 
    Resolution: Fixed/Completed
- 
    Affects Version/s: 4.2.7
- 
    Fix Version/s: 4.2.8
- 
    Component/s: Core CiviCRM
- 
    Labels:None
Description
The sql used to generate the list of ids includes at least one row with a null activity_id. When that row is inserted into the sql statement used to export the records, it comes out like: IN (143, 233, , 2332) which causes an error.