Devo contare fino a 100 prima di postare!!!!!
Versione uletriormente corretta e collaudata a fondo:
$products_query_raw = "select * from " .
TABLE_PRODUCTS . " as a " .
" left join " . TABLE_PRODUCTS_WITH_ATTRIBUTES_STOCK .
" as b using (products_id) where
b.quantity <='" . $stock_reorder_level . "' or
a.products_quantity <='" . $stock_reorder_level . "'
order by a.products_id, b.products_id, b.stock_id";
Mi conforta il fatto che alla fine è più semplice....
Giovanni