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
PrdOptVal1.option_type=0 AND PrdOptVal1.option_value_ru <=
)) GROU' at line 7
SELECT PrdOptVal1.productID FROM SC_product_options_values PrdOptVal1
WHERE PrdOptVal1.optionID=75 AND (
PrdOptVal1.optionID=75
AND
(
PrdOptVal1.option_type=0 AND PrdOptVal1.option_value_ru >=
AND
PrdOptVal1.option_type=0 AND PrdOptVal1.option_value_ru <=
)) GROUP BY PrdOptVal1.productID