Database error: Invalid SQL: SELECT p.id, p.product_title, p.product_code ,p.ptype_id,p.leader, p.product_inf, p.image_middle,
p.price_1, p.price_2, p.price_3, p.currency, PT.ptype_name
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 AND active=1
GROUP BY p.id
HAVING count( p.id ) >0
ORDER by price_1 DESC
LIMIT 0, 174
MySQL Error: 1064 (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 'AND active=1
GROUP BY p.id
HAVING count( p.id ) >0
ORDER by pr' at line 6)
Session halted.