ciao devo sistemare la query per recuperare il valore del campo cat_title in #__tab_category

l'errore è qua: $tab=$vendor->cat_title; o qua $query_all = "SELECT *, v.cat_title FROM #__tabmart ax ";

perchè $vendor->product_id e $vendor->cat_id me li da

nel senso come dovrei richiamare questo campo della tabella left join??

così questo
$tab=$vendor->cat_title;
rimane vuoto

grazie dell'aiuto!!!

$query_all = "SELECT *, v.cat_title FROM #__tabmart ax ";
$query_all .=" LEFT JOIN #__tab_category v ON ax.cat_id = v.id ";
// $query_all .=" WHERE ax.product_id =".(int)$product_id;


$db = new ps_DB;
//if ($auto == 1 && !empty( $category_id ) ) {
// $db->query( $query );
//} else {
$db->query( $query_all );

$res = $db->record;

foreach( $res as $vendor) {

if( $_REQUEST['Itemid'] == $vendor->product_id ) {
$tabmart_id=$vendor->product_id;
$tabcat=$vendor->cat_id;
$tab=$vendor->cat_title;
}
}