cfqueryparam causes no records to return some of the time
I have a query set up as
select a.coulmn1, a.coulmn2, c.coulmn3, a.coulmn4
from general_view a, second_view c
where a.id = c.id
and a.coumn1 = <cfqueryparam value="#form.selected_from_previous_dropdown#" cfsqltype="cf_sql_varchar" maxlength="20">
and c.some_other_column= ('#query2.other_column#')
if i remove the <cfqueryparam> portion it runs fine. If i add the query param it some times does not. Is the syntax in error or does cfquery param alter input in some way that would sometimes result in 0 matches when in fact the records should match the criteria?
