If node revisions is on uc_product will have multiple rows for the same noe. I fixed by amending the query:
$result = db_query("SELECT distinct(node.nid) FROM {uc_products} INNER JOIN {node} ON uc_products.nid = node.nid WHERE node.status = 1");
|
Ubercart |
|
|
|
||
Does not work if node revisions is on
Tue, 11/16/2010 - 17:13
#1
Does not work if node revisions is on
If node revisions is on uc_product will have multiple rows for the same noe. I fixed by amending the query: $result = db_query("SELECT distinct(node.nid) FROM {uc_products} INNER JOIN {node} ON uc_products.nid = node.nid WHERE node.status = 1"); Google Base RSS Feed, 2.3.1 By: danbaker (40 replies) Sat, 06/20/2009 - 12:36
|
|