-- camtool only operates on exposures so we can safely queue more then one at a
-- time without worrying about losing the track of the generated cam_id
INSERT INTO camRun
    SElECT
        0,              -- cam_id
        chip_id,        -- chip_id
        '%s',           -- state
        '%s',           -- workdir
        '%s',           -- workdir_state
        '%s',           -- label
        '%s',           -- reduction
        '%s',           -- expgroup
        '%s',           -- dvodb 
        '%s',           -- tess_id
        '%s'            -- end_stage
    FROM chipRun
    WHERE
        chipRun.state = 'full'
        AND chipRun.chip_id = %lld
