pedigree page message

When I look at Storm Front’s pedigree page the This Breeding; Title point’s box contains this message;

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘GROUP BY Horse’ at line 3
SELECT SUM(Points) AS Points FROM ff_racerecords WHERE Horse = GROUP BY Horse

There is also nothing else under it

Does anyone know anything about this??

Fixed.