Hey, I am trying to get all the rows from one table as long as they are not in another. I am also using mySQL.
Here is the sql I need:
Code:
select sp.products_id, p.products_id, p.products_ordered, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image
from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_SPECIALS . " sp
where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '" . $languages_id. "' and p.products_ordered > 0 group by pd.products_id
order by rand()
DESC limit 20
but I have to make sure the results are not part of:
Code:
select products_id from specials.
Thanks for any help