Problem preparing query (SELECT * FROM items WHERE 1=1)