Unknown column 'pellet' in 'where clause'