error is search with #PreserveSingleQuotes(WADbSearch1.whereClause)#
i have two table some how if i search a few times from different table it wil give me this error
Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] The specified field 'crmStatusID' could refer to more than one table listed in the FROM clause of your SQL statement.
The error occurred in C:\ColdFusion9\wwwroot\webapp\crm\index.cfm: line 55
53 : FROM crm INNER JOIN crmStatus ON crm.crmStatusID = crmStatus.crmstatusID
54 :
55 : #PreserveSingleQuotes(WADbSearch1.whereClause)#
56 :
57 : ORDER BY crmID DESC
--------------------------------------------------------------------------------
VENDORERRORCODE -3007
SQLSTATE HY000
SQL SELECT crm.crmID, crm.crmDate, crm.HotelName, crm.ContactPerson, crm.Mobile, crm.Room, crmStatus.crmStatusID, crmStatus.status FROM crm INNER JOIN crmStatus ON crm.crmStatusID = crmStatus.crmstatusID WHERE ((crmStatusID = 2)) ORDER BY crmID DESC
DATASOURCE webapp2010
Resources:
it is telling me that there are error on lines 55 but it is working a few time and than i give me this error. I can see that on the about "WHERE ((crmStatusID = 2))" ; I think the "crmStatusID = 2" should be "crmStatus.crmStatusID" but it is not working still.
can you tell me where is this from?
#PreserveSingleQuotes(WADbSearch1.whereClause)#
i think it has something to do with session that keep this
#PreserveSingleQuotes(WADbSearch1.whereClause)#
as "WHERE ((crmStatusID = 2))"
how to make this to crmStatus.crmStatusID