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