. */ include_once __DIR__.'/../../core.php'; use Modules\Impianti\Categoria; $subcategorie = Categoria::where('parent', '=', $id_record)->get(); foreach ($subcategorie as $sub) { $impianti = $dbo->fetchArray('SELECT * FROM `my_impianti` WHERE `id_sottocategoria`='.prepare($sub->id)); echo ' '.$sub->getTranslation('title').' '.$sub->colore.' '.$sub->nota.' '; }