Out of memory (Needed 4294967248 bytes) SQL query : select count(*) from SKH_products where ( enabled=1 AND ( productID=36 OR productID=193 OR productID=286 OR productID=958 OR productID=1997 OR productID=2733 OR productID=2750 OR productID=2753 OR productID=2769) ) OR ( enabled=1 AND categoryID=10 ) OR ( enabled=1 AND ( productID=1908) ) OR ( enabled=1 AND categoryID=103 ) OR ( enabled=1 AND ( productID=2727 OR productID=2745) ) OR ( enabled=1 AND categoryID=104 ) OR enabled=1 AND categoryID=105 OR enabled=1 AND categoryID=106 OR enabled=1 AND categoryID=107 OR enabled=1 AND categoryID=108 OR enabled=1 AND categoryID=102 order by sort_order, name