select('*')->from('photos', 'ph') ->andWhere(Operator::equals(['ph.id' => $pageVars['data']['id_photo']])) ->execute()->fetchAssociative(); if ($photo) { $pageVars['data']['photo'] = getImage($photo['id'], $photo['image_2'], $photo['source'], 'product_catalog', $photo['descr'], strtotime($photo['date_update'])); } } $vars['body'] = $pageVars; return $vars; } } return Salesman::class;