Notice: Error: Out of resources when opening file './imperiakovrov/oc_ocfilter_option_value_to_product.MYD' (Errcode: 24 "Too many open files")
Error No: 23
SELECT value_id, option_id, total FROM (SELECT p.manufacturer_id AS value_id, 'm' AS option_id, COUNT(p.manufacturer_id) AS total FROM oc_product p LEFT JOIN oc_product_to_category p2c ON (p.product_id = p2c.product_id) WHERE p.status = '1' AND p2c.category_id = '2' AND p.product_id IN(SELECT oov2p1.product_id FROM oc_ocfilter_option_value_to_product oov2p1 WHERE oov2p1.option_id = '43' AND (oov2p1.value_id = '509766022' OR oov2p1.value_id = '860618771' OR oov2p1.value_id = '2732533506' OR oov2p1.value_id = '2893565824' OR oov2p1.value_id = '2937114599' OR oov2p1.value_id = '3094076324' OR oov2p1.value_id = '3255035716' OR oov2p1.value_id = '3465844819')) GROUP BY p.manufacturer_id UNION ALL SELECT IF(p.quantity > '0', 'in', 'out') AS value_id, 's' AS option_id, COUNT(*) AS total FROM oc_product p LEFT JOIN oc_product_to_category p2c ON (p.product_id = p2c.product_id) WHERE p.status = '1' AND p2c.category_id = '2' AND p.product_id IN(SELECT oov2p1.product_id FROM oc_ocfilter_option_value_to_product oov2p1 WHERE oov2p1.option_id = '43' AND (oov2p1.value_id = '509766022' OR oov2p1.value_id = '860618771' OR oov2p1.value_id = '2732533506' OR oov2p1.value_id = '2893565824' OR oov2p1.value_id = '2937114599' OR oov2p1.value_id = '3094076324' OR oov2p1.value_id = '3255035716' OR oov2p1.value_id = '3465844819')) GROUP BY value_id UNION ALL SELECT oov2p.value_id, oov2p.option_id, COUNT(p.product_id) AS total FROM oc_ocfilter_option_value_to_product oov2p LEFT JOIN oc_product_to_category p2c ON (oov2p.product_id = p2c.product_id) LEFT JOIN oc_product p ON (oov2p.product_id = p.product_id) WHERE oov2p.value_id > '0' AND p.status = '1' AND p2c.category_id = '2' AND p.product_id IN(SELECT oov2p1.product_id FROM oc_ocfilter_option_value_to_product oov2p1 WHERE oov2p1.option_id = '43' AND (oov2p1.value_id = '509766022' OR oov2p1.value_id = '860618771' OR oov2p1.value_id = '2732533506' OR oov2p1.value_id = '2893565824' OR oov2p1.value_id = '2937114599' OR oov2p1.value_id = '3094076324' OR oov2p1.value_id = '3255035716' OR oov2p1.value_id = '3465844819')) GROUP BY oov2p.option_id, oov2p.value_id UNION ALL SELECT oov2p.value_id, oov2p.option_id, COUNT(p.product_id) AS total FROM oc_product p LEFT JOIN oc_product_to_category p2c ON (p.product_id = p2c.product_id) LEFT JOIN oc_ocfilter_option_value_to_product oov2p ON (p.product_id = oov2p.product_id) WHERE oov2p.option_id = '43' AND p.status = '1' AND p2c.category_id = '2' GROUP BY oov2p.option_id, oov2p.value_id) results in /var/www/imperiakovrov.com/system/database/mysql.php on line 27