INSERT INTO addRun
    SELECT
        0,              -- add_id
        cam_id,         -- cam_id
        '%s',           -- state
        '%s',           -- workdir
	'%s',           -- workdir_state
        '%s',           -- reduction
        '%s',           -- label
        '%s',           -- data_group
        '%s',           -- dvodb 
        '%s',           -- note
	%d		-- image_only
    FROM camRun
    WHERE
        camRun.state = 'full'
        AND camRun.cam_id = %lld
