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 ') group by at.products_id' at line 1
in:
[select at.products_id from products_attributes at where at.options_values_id in(214,) group by at.products_id ]