I imported some new stats from the repository and even created some of my own. I then updated the cache with the housekeeping feature.
All my existing reports still work. But now when I create a new report, regardless whether I use one of the new stats or not, I get the following error:
Unable to execute query: SELECT sum(cnt_hands) FROM ( SELECT (count(holdem_hand__player_statistics.id_hand)) as "cnt_hands" FROM holdem_hand_player_statistics WHERE ((count(holdem_hand_player_statistics.id_hand))>=20 AND (count(holdem_hand_player_statistics.id_hand))<700) UNION SELECT sum(holdem_cache.cnt_hands) FROM holdem_cache WHERE 1=1 ) AS CacheTable; Reason: Fatal Error (ERROR: aggregates not allowed in WHERE clause)
For this particular report I just grabbed Hands and only used that stat. It was just a test to see if an existing statistic still worked. It failed. Is something wrong with updating the cache? By looking at this error it seems like it is a problem with the cache. I've restarted several times. I've cached about 6 times. I've even exported and re-imported 3 times. I even created a new database. I keep getting the same error.
This is frustrating.