
	SELECT project.id AS the_project FROM project WHERE
	(gi_pf_invoice_code_balance IS NOT NULL AND gi_pf_invoice_code_balance <> '')
	AND
	(balance_due IS NULL OR balance_due = '' OR balance_due = '0')
	AND
	id > 10547
