SQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IN(zr.z_id, 1)) ORDER BY p.price, p.name LIMIT 0, 10' at line 1 at /usr/home/a65002/zakazpodarka.ru/html/catalog.php line 252
Array
(
[code] => 1064
[message] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IN(zr.z_id, 1)) ORDER BY p.price, p.name LIMIT 0, 10' at line 1
[query] => SELECT SQL_CALC_FOUND_ROWS DISTINCT p.*, c.addresses_type, c.addresses_relations FROM (dari_catalog_presents AS p, dari_zones_relations AS zr) LEFT JOIN dari_categories AS c ON c.c_id = p.company_id WHERE p.price <= 1000 AND 1 = NULL AND p.p_id = zr.p_id AND zr.type = 'present' AND ( IN(zr.z_id, 1)) ORDER BY p.price, p.name LIMIT 0, 10
[context] => /usr/home/a65002/zakazpodarka.ru/html/catalog.php line 252
)