I isolatet the problem from a much more complex query. Here the test scenario
DROP TABLE test; CREATE TABLE test ( id integer, description varchar(100)
You are not limiting your where clause. You need to have id = (blahblah) or id IN (blahblah)