Does not work if node revisions is on

hinrichsislcocom's picture
Offline
Bug Finder
Joined: 05/28/2008
Juice: 92
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");

Bob Hinrichs
ISL Consulting
http://www.islco.com

Google Base RSS Feed, 2.3.1 By: danbaker (40 replies) Sat, 06/20/2009 - 12:36