Error with: select * from template where id=