you need to make sure that you generate single quote delimiters for your image string
when it reaches mysql, it wants to look like this --
WHERE image = 'foobar'
of course, that's assuming image is a character column, not a numeric column
if it's a numeric column, and $animeimg is supposed to be an integer, then you should not generate quotes into the sql
you can tell if your statement is correct by echoing $sql before you execute it