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 (17, 18, 19, 36, 87, 88, 89, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 227, 228, 235, 236, 237, 238, 239, 240, 241, 304, 152) 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 '%Huawei P10%' and id=p.id) or exists(select 1 from product where name like '%Huawei P10 lite%' and id=p.id) or exists(select 1 from product where name like '%P9 Huawei%' and id=p.id) or exists(select 1 from product where name like '%G8 Rio%' and id=p.id) or exists(select 1 from product where name like '%Honor 4C%' and id=p.id) or exists(select 1 from product where name like '%Honor 4X%' and id=p.id) or exists(select 1 from product where name like '%Honor 6%' and id=p.id) or exists(select 1 from product where name like '%Huawei G7 Ascend%' and id=p.id) or exists(select 1 from product where name like '%Huawei Honor 10%' and id=p.id) or exists(select 1 from product where name like '%Huawei Honor 8%' and id=p.id) or exists(select 1 from product where name like '%Huawei Honor 9%' and id=p.id) or exists(select 1 from product where name like '%Mate 10 Lite%' and id=p.id) or exists(select 1 from product where name like '%Huawei Mate 10 Pro%' and id=p.id) or exists(select 1 from product where name like '%Huawei Mate 20 Lite%' and id=p.id) or exists(select 1 from product where name like '%Huawei Mate 9%' and id=p.id) or exists(select 1 from product where name like '%Huawei Nova 3%' and id=p.id) or exists(select 1 from product where name like '%Huawei P Smart%' and id=p.id) or exists(select 1 from product where name like '%P Smart Dual Sim%' and id=p.id) or exists(select 1 from product where name like '%Huawei P20%' and id=p.id) or exists(select 1 from product where name like '%Huawei P20 Lite%' and id=p.id) or exists(select 1 from product where name like '%Huawei P20 Pro%' and id=p.id) or exists(select 1 from product where name like '%Huawei P9 Plus%' and id=p.id) or exists(select 1 from product where name like '%Huawei Y5 2018%' and id=p.id) or exists(select 1 from product where name like '%Huawei Y6 2018%' and id=p.id) or exists(select 1 from product where name like '%Huawei Y7 Prime 2018%' and id=p.id) or exists(select 1 from product where name like '%Mate 7%' and id=p.id) or exists(select 1 from product where name like '%Mate S carrera%' and id=p.id) or exists(select 1 from product where name like '%P6 Ascend Huawei%' and id=p.id) or exists(select 1 from product where name like '%P7 Ascend Huawei%' and id=p.id) or exists(select 1 from product where name like '%Huawei P8%' and id=p.id) or exists(select 1 from product where name like '%P8 Lite%' and id=p.id) or exists(select 1 from product where name like '%P9 Lite 2017 Huawei%' and id=p.id) or exists(select 1 from product where name like '%P9 Lite%' and id=p.id) or exists(select 1 from product where name like '%Y 635%' and id=p.id) or exists(select 1 from product where name like '%huawei%' 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