select count(*) as c from product as p where exists(select 1 from program where id=program_id and exists(select 1 from xml where id=xml_id and deleted=0)) and ((exists(select 1 from category where category.id in (92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 91) and exists(select 1 from webe_catalog where p.webe_catalog_id=webe_catalog.id and p.webe_catalog_id=webe_catalog.id and EXISTS( select 1 from category_webe_catalog where category_webe_catalog.webe_catalog_id=webe_catalog.id and category_webe_catalog.category_id=category.id)))) or (false or exists(select 1 from product where name like '%HTC 10%' and id=p.id) or exists(select 1 from product where name like '%Desire Bravo%' and id=p.id) or exists(select 1 from product where name like '%Desire 10 Lifestyle%' and id=p.id) or exists(select 1 from product where name like '%Desire 10 Pro%' and id=p.id) or exists(select 1 from product where name like '%Desire 12%' and id=p.id) or exists(select 1 from product where name like '%Desire 12 Plus%' and id=p.id) or exists(select 1 from product where name like '%Desire 200%' and id=p.id) or exists(select 1 from product where name like '%Desire 210%' and id=p.id) or exists(select 1 from product where name like '%Desire 300%' and id=p.id) or exists(select 1 from product where name like '%Desire 310%' and id=p.id) or exists(select 1 from product where name like '%Desire 320%' and id=p.id) or exists(select 1 from product where name like '%HTC Desire 500%' and id=p.id) or exists(select 1 from product where name like '%Desire 510%' and id=p.id) or exists(select 1 from product where name like '%Desire 516%' and id=p.id) or exists(select 1 from product where name like '%316%' and id=p.id) or exists(select 1 from product where name like '%Desire 526%' and id=p.id) or exists(select 1 from product where name like '%Desire 530 / 630%' and id=p.id) or exists(select 1 from product where name like '%HTC Desire 600%' and id=p.id) or exists(select 1 from product where name like '%Desire 601%' and id=p.id) or exists(select 1 from product where name like '%Desire 610%' and id=p.id) or exists(select 1 from product where name like '%Desire 616%' and id=p.id) or exists(select 1 from product where name like '%Desire 620/620G%' and id=p.id) or exists(select 1 from product where name like '%Desire 626%' and id=p.id) or exists(select 1 from product where name like '%Desire 628%' and id=p.id) or exists(select 1 from product where name like '%Desire 700%' and id=p.id) or exists(select 1 from product where name like '%Desire 728%' and id=p.id) or exists(select 1 from product where name like '%Desire 816%' and id=p.id) or exists(select 1 from product where name like '%Desire 820 mini%' and id=p.id) or exists(select 1 from product where name like '%Desire 820%' and id=p.id) or exists(select 1 from product where name like '%820G dual SIM%' and id=p.id) or exists(select 1 from product where name like '%Desire 825%' and id=p.id) or exists(select 1 from product where name like '%Desire 826%' and id=p.id) or exists(select 1 from product where name like '%Desire 826%' and id=p.id) or exists(select 1 from product where name like '%Desire 830%' and id=p.id) or exists(select 1 from product where name like '%HTC Desire Eye%' and id=p.id) or exists(select 1 from product where name like '%Desire HD%' and id=p.id) or exists(select 1 from product where name like '%Desire X%' and id=p.id) or exists(select 1 from product where name like '%HTC One (M7)%' and id=p.id) or exists(select 1 from product where name like '%HTC One A9%' and id=p.id) or exists(select 1 from product where name like '%HTC One E8%' and id=p.id) or exists(select 1 from product where name like '%E8 Dual SIM%' and id=p.id) or exists(select 1 from product where name like '%HTC One E9 Plus%' and id=p.id) or exists(select 1 from product where name like '%HTC One E9s dual SIM%' and id=p.id) or exists(select 1 from product where name like '%HTC One M8%' and id=p.id) or exists(select 1 from product where name like '%M8s%' and id=p.id) or exists(select 1 from product where name like '%HTC One M9 Plus%' and id=p.id) or exists(select 1 from product where name like '%HTC One M9%' and id=p.id) or exists(select 1 from product where name like '%M9s%' and id=p.id) or exists(select 1 from product where name like '%HTC One Max%' and id=p.id) or exists(select 1 from product where name like '%HTC One ME%' and id=p.id) or exists(select 1 from product where name like '%HTC One Mini%' and id=p.id) or exists(select 1 from product where name like '%One Mini 2 (M8 mini)%' and id=p.id) or exists(select 1 from product where name like '%HTC One S%' and id=p.id) or exists(select 1 from product where name like '%HTC One V%' and id=p.id) or exists(select 1 from product where name like '%HTC One X%' and id=p.id) or exists(select 1 from product where name like '%HTC One X9%' and id=p.id) or exists(select 1 from product where name like '%HTC U Play%' and id=p.id) or exists(select 1 from product where name like '%HTC U11%' and id=p.id) or exists(select 1 from product where name like '%HTC U11 Life%' and id=p.id) or exists(select 1 from product where name like '%HTC U11 Plus%' and id=p.id) or exists(select 1 from product where name like '%U12 Life%' and id=p.id) or exists(select 1 from product where name like '%HTC U12 Plus%' and id=p.id) or exists(select 1 from product where name like '%HTC Wildfire%' and id=p.id) or exists(select 1 from product where name like '%HTC Wildfire S%' and id=p.id) or exists(select 1 from product where name like '%HTC X10%' and id=p.id) or exists(select 1 from product where name like '%htc%' and id=p.id) ))SQLSTATE[HY000]: General error: 1290 The MariaDB server is running with the --max-session-mem-used=1073741824 option so it cannot execute this statement