Out of memory (Needed 4294967248 bytes) SQL query : select count(*) from SKH_products where ( enabled=1 AND ( productID=219 OR productID=423 OR productID=606 OR productID=735 OR productID=859 OR productID=1130 OR productID=1159 OR productID=1181 OR productID=1355 OR productID=1366 OR productID=1370 OR productID=1385 OR productID=1386 OR productID=1391 OR productID=1394 OR productID=1401 OR productID=1404 OR productID=1406 OR productID=1420 OR productID=1442 OR productID=1444 OR productID=1460 OR productID=1464 OR productID=1466 OR productID=1468 OR productID=1477 OR productID=1484 OR productID=1494 OR productID=1501 OR productID=1556 OR productID=1596 OR productID=1905 OR productID=1979 OR productID=2001 OR productID=2727) ) OR ( enabled=1 AND categoryID=3 ) OR ( enabled=1 AND ( productID=1575 OR productID=1612 OR productID=1686) ) OR ( enabled=1 AND categoryID=151 ) OR enabled=1 AND categoryID=152 OR enabled=1 AND categoryID=153 OR enabled=1 AND categoryID=154 OR enabled=1 AND categoryID=155 OR enabled=1 AND categoryID=207 OR enabled=1 AND categoryID=150 order by sort_order, name