well literally can not replicate the issue and that query can only be found one place the ratings cache function.
I would suspect a bot maybe playing with urls values.
Maybe as a test try making line 5220 of pp-inc.php.
Content visible to verified customers only.
what I added is in bold.