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 (22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 184) 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 '%LG L Prime%' and id=p.id) or exists(select 1 from product where name like '%LG G3 Stylus%' and id=p.id) or exists(select 1 from product where name like '%LG G4 Stylus%' and id=p.id) or exists(select 1 from product where name like '%LG K5%' and id=p.id) or exists(select 1 from product where name like '%LG L Bello Dual%' and id=p.id) or exists(select 1 from product where name like '%LG L Fino%' and id=p.id) or exists(select 1 from product where name like '%LG L70%' and id=p.id) or exists(select 1 from product where name like '%LG Nexus 5X%' and id=p.id) or exists(select 1 from product where name like '%LG Ray X190%' and id=p.id) or exists(select 1 from product where name like '%LG V10%' and id=p.id) or exists(select 1 from product where name like '%V10 Dual SIM%' and id=p.id) or exists(select 1 from product where name like '%LG X cam%' and id=p.id) or exists(select 1 from product where name like '%LG X Power Dual SIM%' and id=p.id) or exists(select 1 from product where name like '%LG X Style%' and id=p.id) or exists(select 1 from product where name like '%LG G2%' and id=p.id) or exists(select 1 from product where name like '%LG G3%' and id=p.id) or exists(select 1 from product where name like '%LG G3s%' and id=p.id) or exists(select 1 from product where name like '%G3 mini%' and id=p.id) or exists(select 1 from product where name like '%LG G4%' and id=p.id) or exists(select 1 from product where name like '%LG G5%' and id=p.id) or exists(select 1 from product where name like '%LG G7%' and id=p.id) or exists(select 1 from product where name like '%LG K10%' and id=p.id) or exists(select 1 from product where name like '%LG K3%' and id=p.id) or exists(select 1 from product where name like '%LG K4%' and id=p.id) or exists(select 1 from product where name like '%LG K7%' and id=p.id) or exists(select 1 from product where name like '%LG K8%' and id=p.id) or exists(select 1 from product where name like '%LG Q7%' and id=p.id) or exists(select 1 from product where name like '%LG X screen%' and id=p.id) or exists(select 1 from product where name like '%lg%' 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