There is a select distinct in it, but it still returns those companies multiple times if there have more than one code.
<cfquery datasource="xxx" name="Company">
Select distinct company, codes
from vwCompany
where active='true'
cfif isdefined("code") and code neq ''> and code IN (<cfqueryparam value="#form.code#" list="yes">)</cfif>
</cfquery>