Re: dataObject multiple links from a column

From: Date: Sun, 11 Jan 2004 12:06:23 +0000
Subject: Re: dataObject multiple links from a column
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-10102@lists.php.net to get a copy of this message
__find: SENT: SELECT * FROM marker_commercial_smc INNER JOIN marker_category_xref ON marker_category_xref.marker_id.smc=marker_commercial_smc.marker_id WHERE marker_category_xref.category_id = '2f8edc5e7dc6a65839672545d7ff3a43' ERROR: DB Error: unknown error
This is pretty common when using joins... use the mysql command prompt and paste the query into it.. (to see the real error) - I suspect it will say ambiguos result.. - eg. two columns the same.. In which case it may be worth using $mcx->category_id = $category_id; $mcs->joinAdd($mcx); // select as the same name.. $mcs->selectAs(); // select all the mcx fields as mcx_* $mcs->selectAs($mcs,'mcx_%s'); Regards Alan
__find: CHECK autofetchd __find: DONE


« previous php.pear.general (#10102) next »