Innerjoin type mismatch error
Hello;
I'm trying to write an innerjoin query, and I get an error with a mismatched expression... I'm posting my query, maybe someone else can see where I'm going wrong here...
<cfquery name="logMem" datasource="#APPLICATION.dataSource#">
SELECT Lcustomers.c_ID, Lcustomers.c_fname, Lcustomers.c_lname, Lcustomers.c_street, Lcustomers.c_city, Lcustomers.c_state, Lcustomers.c_zip, Lcustomers.c_email, MerchandiseOrdersItems.cardID, MerchandiseOrdersItems.c_ID, MerchandiseOrdersItems.cc_type, MerchandiseOrdersItems.cc_num, MerchandiseOrdersItems.cc_verify, MerchandiseOrdersItems.cc_expir_m, MerchandiseOrdersItems.cc_expir_y
FROM Lcustomers
INNER JOIN MerchandiseOrdersItems
ON MerchandiseOrdersItems.c_ID = LCustomers.c_ID
WHERE Lcustomers.c_email = '#SESSION.uscl.c_email#'
</cfquery>
This is the error:
Error Executing Database Query. | ||||||
| [Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] Type mismatch in expression. | ||||||
| The error occurred in C:\Websites\187914kg3\store\confirmorder.cfm: line 52 | ||||||
50 : INNER JOIN MerchandiseOrdersItems 51 : ON MerchandiseOrdersItems.c_ID = LCustomers.c_ID 52 : WHERE Lcustomers.c_email = '#SESSION.uscl.c_email#' 53 : </cfquery> 54 : <cfif logMem.cc_type EQ ""> | ||||||
| ||||||
Can anyone see what's wrong?
Thank you.
