Notice: Error: User 'carteposzcpa2' has exceeded the 'max_questions' resource (current value: 970)
Error No: 1226
SELECT COUNT(DISTINCT p.product_id) AS total FROM product p LEFT JOIN product_description pd ON (p.product_id = pd.product_id) LEFT JOIN product_to_store p2s ON (p.product_id = p2s.product_id) LEFT JOIN product_to_category p2c ON (p.product_id = p2c.product_id) WHERE pd.language_id = '2' AND p.status = '1' AND p.date_available <= NOW() AND p2s.store_id = '0' AND (p2c.category_id = '230' OR p2c.category_id = '351' OR p2c.category_id = '352' OR p2c.category_id = '353' OR p2c.category_id = '354' OR p2c.category_id = '355' OR p2c.category_id = '356' OR p2c.category_id = '357' OR p2c.category_id = '358' OR p2c.category_id = '359' OR p2c.category_id = '360' OR p2c.category_id = '361' OR p2c.category_id = '362' OR p2c.category_id = '363' OR p2c.category_id = '364' OR p2c.category_id = '365' OR p2c.category_id = '339' OR p2c.category_id = '340' OR p2c.category_id = '341' OR p2c.category_id = '342' OR p2c.category_id = '343' OR p2c.category_id = '344' OR p2c.category_id = '345' OR p2c.category_id = '346' OR p2c.category_id = '347' OR p2c.category_id = '348' OR p2c.category_id = '349' OR p2c.category_id = '350' OR p2c.category_id = '366' OR p2c.category_id = '374' OR p2c.category_id = '418' OR p2c.category_id = '417' OR p2c.category_id = '411' OR p2c.category_id = '247' OR p2c.category_id = '248' OR p2c.category_id = '249' OR p2c.category_id = '250' OR p2c.category_id = '251' OR p2c.category_id = '252' OR p2c.category_id = '253' OR p2c.category_id = '254' OR p2c.category_id = '255' OR p2c.category_id = '256' OR p2c.category_id = '257' OR p2c.category_id = '258' OR p2c.category_id = '259' OR p2c.category_id = '260' OR p2c.category_id = '261' OR p2c.category_id = '262' OR p2c.category_id = '263' OR p2c.category_id = '264' OR p2c.category_id = '265' OR p2c.category_id = '266' OR p2c.category_id = '267' OR p2c.category_id = '268' OR p2c.category_id = '269' OR p2c.category_id = '270' OR p2c.category_id = '271' OR p2c.category_id = '272' OR p2c.category_id = '273' OR p2c.category_id = '274' OR p2c.category_id = '275' OR p2c.category_id = '276' OR p2c.category_id = '277' OR p2c.category_id = '278' OR p2c.category_id = '279' OR p2c.category_id = '280' OR p2c.category_id = '281' OR p2c.category_id = '282' OR p2c.category_id = '283' OR p2c.category_id = '284' OR p2c.category_id = '285' OR p2c.category_id = '286' OR p2c.category_id = '287' OR p2c.category_id = '288' OR p2c.category_id = '289' OR p2c.category_id = '290' OR p2c.category_id = '291' OR p2c.category_id = '292' OR p2c.category_id = '293' OR p2c.category_id = '294' OR p2c.category_id = '295' OR p2c.category_id = '296' OR p2c.category_id = '297' OR p2c.category_id = '298' OR p2c.category_id = '299' OR p2c.category_id = '300' OR p2c.category_id = '301' OR p2c.category_id = '302' OR p2c.category_id = '303' OR p2c.category_id = '304' OR p2c.category_id = '305' OR p2c.category_id = '306' OR p2c.category_id = '307' OR p2c.category_id = '308' OR p2c.category_id = '309' OR p2c.category_id = '310' OR p2c.category_id = '311' OR p2c.category_id = '312' OR p2c.category_id = '313' OR p2c.category_id = '314' OR p2c.category_id = '315' OR p2c.category_id = '316' OR p2c.category_id = '317' OR p2c.category_id = '318' OR p2c.category_id = '319' OR p2c.category_id = '320' OR p2c.category_id = '321' OR p2c.category_id = '322' OR p2c.category_id = '323' OR p2c.category_id = '324' OR p2c.category_id = '325' OR p2c.category_id = '326' OR p2c.category_id = '327' OR p2c.category_id = '328' OR p2c.category_id = '329' OR p2c.category_id = '330' OR p2c.category_id = '331' OR p2c.category_id = '332' OR p2c.category_id = '333' OR p2c.category_id = '334' OR p2c.category_id = '335' OR p2c.category_id = '336' OR p2c.category_id = '337' OR p2c.category_id = '338' OR p2c.category_id = '367' OR p2c.category_id = '384' OR p2c.category_id = '387' OR p2c.category_id = '435' OR p2c.category_id = '136' OR p2c.category_id = '112' OR p2c.category_id = '183' OR p2c.category_id = '146' OR p2c.category_id = '147' OR p2c.category_id = '153' OR p2c.category_id = '114' OR p2c.category_id = '170' OR p2c.category_id = '163' OR p2c.category_id = '148' OR p2c.category_id = '173' OR p2c.category_id = '117' OR p2c.category_id = '192' OR p2c.category_id = '152' OR p2c.category_id = '115' OR p2c.category_id = '166' OR p2c.category_id = '179' OR p2c.category_id = '168' OR p2c.category_id = '160' OR p2c.category_id = '143' OR p2c.category_id = '156' OR p2c.category_id = '174' OR p2c.category_id = '172' OR p2c.category_id = '164' OR p2c.category_id = '414' OR p2c.category_id = '135') AND p.quantity > 0 in /home/carteposz/www/system/database/mysql.php on line 49