SELECT brands.id, tovar.id_brands, tovar.id, tovar_value.id_tovar, brands.caption, brands.url FROM brands INNER JOIN tovar ON brands.id = tovar.id_brands INNER JOIN tovar_value ON tovar.id = tovar_value.id_tovar WHERE brands.`caption` LIKE 'N%' AND (tovar_value.`supplier_parel` > 0 OR tovar_value.`supplier_prime` > 0 OR tovar_value.`supplier_shop_zanev` > 0 OR tovar_value.`supplier_store` > 0 OR tovar_value.`supplier_parfumerovv` > 0 OR tovar_value.`supplier_duhirf` > 0 OR tovar_value.`supplier_dalsi` > 0) GROUP BY brands.`id` failed!
Server shutdown in progress