Notice: Error:
Error No: 0
SELECT op.product_id, COUNT(*) AS total FROM order_product op LEFT JOIN `order` o ON (op.order_id = o.order_id) LEFT JOIN `product` p ON (op.product_id = p.product_id) LEFT JOIN product_to_store p2s ON (p.product_id = p2s.product_id) WHERE o.order_status_id > '0' AND p.status = '1' AND p.date_available <= NOW() AND op.order_id IN (618, 634, 870, 918, 973, 1115, 1608, 1771, 1772, 1773, 1774, 1922, 2056, 2144, 2190, 2191, 2227, 2350, 2372, 2376, 2515, 2554, 2623, 2703, 2800, 2801, 2842, 2891, 2892, 2911, 3017, 3021, 3047, 3155, 3156, 3232, 3233, 3263, 3274, 3275, 3309, 3412, 3560, 3885, 4094, 4607, 4682, 5118, 5927, 5929, 6118, 6213, 6477, 6593, 6660, 6695, 7157, 7158, 7159, 7284, 7285, 7354, 7405, 7437, 7473, 7512, 7744, 7832, 8236, 8266, 8271, 8561, 8879, 8880, 8945, 9455, 10245, 10331, 10332, 10442, 10579, 10587, 10601, 10839, 10904, 10909, 11078, 11086, 11603, 11895, 12364, 12376, 12499, 12940, 12966, 13253, 13260, 13292, 13461, 13462, 13527, 13626, 13629, 13644, 13645, 13646, 13647, 13737, 13743, 13744, 13767, 13882, 13903, 13904, 13908, 13946, 14150, 14151, 14174, 14188, 14192, 14246, 14273, 14387, 14504, 15049, 15170, 15254, 15257, 15267, 15272, 15698, 15962, 15989, 16529, 16619, 16751, 16932, 17039, 17043, 17189, 17211, 17212, 17380, 17401, 17419, 17420, 17448, 17449, 17516, 17688, 17803, 17804, 17816, 17817, 17888, 17921, 17931,) AND op.product_id != '16294' AND p2s.store_id = '0' GROUP BY op.product_id ORDER BY total DESC LIMIT 3 in /var/www/promkole/data/www/neotop.ru/system/database/mysql_i.php on line 50