Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » override auto rdcaccount_id clause in a manually extended SQL
Re: override auto rdcaccount_id clause in a manually extended SQL [message #1992 is a reply to message #1990] Sun, 19 April 2009 19:37 Go to previous messageGo to previous message
gpatti is currently offline  gpatti
Messages: 283
Registered: August 2008
Senior Member
The error message displayed is: Fatal Error: MySQL error: 1052 - Column 'rdcaccount_id' in where clause is ambiguous (# 1052).
It's because I am joining to a 2nd table, and both tables contain rdcaccount_id, but the generated SQL has " AND rdcaccount_id in ('1', 'n')" as part of the WHERE clause. It would need to have " AND table_name.rdcaccount_id IN.."

Let me know if you need further info on how I have actually set up the $where clause, although the rdcaccount_id reference is being automatically added to the where clause by the framework. I can't see how I can change it.

Graham
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Use Messages[] in a LIST1 transaction
Next Topic: Dynamic Task Selection
Goto Forum:
  


Current Time: Thu Nov 28 22:48:16 EST 2024

Total time taken to generate the page: 0.01050 seconds