Добрый день, пытаюсь вывести все товары у которых есть изображение, но немогу правильно поставить условие, можете подсказать?
$Shop_Controller_Show
->shopItems()
->queryBuilder()
->join('shop_item_discounts', 'shop_item_discounts.shop_item_id', '=', 'shop_items.id')
->join('shop_discounts', 'shop_discounts.id', '=', 'shop_item_discounts.shop_discount_id')
->where('shop_discounts.active', '=', 1)
->where('shop_discounts.start_datetime', '<', Core_Date::timestamp2sql(time()))
->where('shop_discounts.end_datetime', '>', Core_Date::timestamp2sql(time()))
->where('shop_discounts.deleted', '=', 0)
->where('shop_item.img',' !=',0)
->clearOrderBy()
->orderBy('RAND()');
$Shop_Controller_Show->show();