I have the following query:
$products_query =
tep_db_query("select op.orders_products_id, op.orders_id, op.products_id, ".
"op.products_model, op.products_name, op.products_quantity, ".
"p.products_id from " . TABLE_ORDERS_PRODUCTS . " op " .
" left join " . TABLE_PRODUCTS . " p " .
" on (op.products_id = p.products_id) where orders_id = '" .
(int)$cuttinglist['orders_id'] . "'");
This joins two tables together with the same id. How would I join a 3rd table called:
"TABLE_ORDERS_PRODUCTS_ATTRIBUTES"
with the same id as:
"TABLE_ORDERS_PRODUCTS"
The ID used is:
"orders_products_id"