Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/ovh/www/chinaexport/fantastic2/includes/general/classes/class.Category.php on line 1701 Warning: mysql_free_result() expects parameter 1 to be resource, boolean given in /home/ovh/www/chinaexport/fantastic2/includes/general/classes/class.Category.php on line 1703 Fatal error: Uncaught exception 'Exception' with message 'Zapytanie niepoprawne!
SELECT COUNT(DISTINCT p.id) as ilosc FROM cex_produkt p INNER JOIN cex_grupy_produkty ptg ON p.id = ptg.p_id  INNER JOIN cex_shops_produkt sp ON p.id = sp.product_id WHERE   AND sp.aktywny = 1  AND (( SELECT SUM(m.ilosc+m.ilosc_wirtualna) FROM `cex_magazyn` m WHERE m.produkt = p.id ) > 0) 
' in /home/ovh/www/chinaexport/fantastic2/includes/general/classes/class.Database.php:77 Stack trace: #0 /home/ovh/www/chinaexport/fantastic2/includes/general/classes/class.Category.php(1247): Database->query('SELECT COUNT(DI...') #1 /home/ovh/www/chinaexport/fantastic2/includes/pages/produkt.php(975): Category->iloscProduktow(true, NULL, NULL, NULL, true) #2 /home/ovh/www/chinaexport/fantastic2/index.php(1419): include('/home/ovh/www/c...') #3 {main} thrown in /home/ovh/www/chinaexport/fantastic2/includes/general/classes/class.Database.php on line 77