| Index
» Projects
» phpMyEdit
» Forum
» Weird problem with join |
 |
sbuser
Joined: 21 Apr 2006
Posts: 1
Posted: 2006-04-21 15:24
Back to top
Reply with quote
|
I get a
MySQL error 1054
Unknown column 'PMEtable0.join_to_Email' in 'on clause'
when trying to join. I have done a join before on another table and it worked fine. Been using phpmyedit for a couple years with great results.
$opts['fdd']['join_to_Email'] = array(
'input' => 'VR',
'options' => '',
'values' => Array(
'table' => 'EmailPermanentList', //joined table
'column' => 'EmailPermanentId', //the joined key
'description' => 'Email ID',
'join' => '$main_table.id=$join_table.EmailPermanentId,'
)
);
Here's the query it prints out. Can't figure out why it wants to
And here's the query that prints out.
SELECT PMEtable0.id AS qf0,PMEtable0.Ptype AS qf2,PMEtable0.NewExisting AS qf3,PMEtable0.ProjectName AS qf4,PMEtable0.ClientName AS qf5,PMEtable0.Source AS qf7,PMEtable0.POST AS qf8,PMEtable0.Narrative AS qf12,PMEtable0.Chambers AS qf13,PMEtable0.Bolivar AS qf14,PMEtable0.Hardin AS qf15,PMEtable0.Liberty AS qf16,PMEtable0.Jefferson AS qf17,PMEtable0.Jasper AS qf18,PMEtable0.Newton AS qf19,PMEtable0.Orange AS qf20,PMEtable0.Tyler AS qf21 FROM Activities AS PMEtable0 LEFT OUTER JOIN w248249.EmailPermanentList AS PMEjoin6 ON PMEjoin6.EmailPermanentId = PMEtable0.join_to_Email ORDER BY PMEtable0.id DESC,PMEtable0.Ptype
|
michal
Joined: 17 Jun 2003
Posts: 537
Location: Slovakia
Posted: 2006-04-21 16:02
Back to top
Reply with quote
|
you have no field 'join_to_Email' ?
then you need some option like
'sql'=>'id'
|
|
Post new topic
Reply to topic
|
|
|
|