Query isn't working
I haven't used the LIKE expression before, so I'm sure that's part of the issue, but anyway - Here's my query. I'm trying to get any row from the TBL_advedrtisers table where the customername is contained in the keywords column of the editorials table. The keywords column contains a string of customernames.
<cfquery name="CurrentArticle" datasource="mydb">
SELECT *
FROM editorials
WHERE editorials.thekey=#URL.ArticleID#
</cfquery>
<cfset thekeywords = #CurrentArticle.keywords#>
<cfquery name="SpecificAds" datasource="mydb">
SELECT * FROM TBL_advertisers
WHERE %TBL_advertisers.customername% LIKE '#thekeywords#'
</cfquery>
