Database error: Invalid SQL: SELECT p.id, p.active, p.product_title, p.product_code , p.product_inf, p.image_middle,
p.price_1, p.price_2, p.price_3,p.price_4, p.currency,p.ptype_id, PT.ptype_name as prod_ptype
FROM rm_rus_catalog_products p
LEFT JOIN rm_rus_catalog_property_values pv ON (pv.product_id=p.id)
LEFT JOIN rm_rus_catalog_ptypes AS PT ON p.ptype_id = PT.id
WHERE (p.category_id=) and (p.active <>"0")
GROUP BY p.id
HAVING count( p.id ) > -1
ORDER by price_1 DESC
MySQL Error: 1064 (You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') and (p.active <>"0")
GROUP BY p.id
HAVING count( p.id ) > -1
' at line 6)
Session halted.