I am so sorry about a bump of a very old thread. But this post was in first place of googling with the same problem. So I dont know a really right way to fix this problem, but as a "temporary" fix I just change the string which executes a query, so Hlstatsx daemon will not die.
Just in file HLstats.plib on 213 line
Code:
$db_stmt_cache{$query_id}->execute(@bind_args) or die ("Unable to execute query $query_id):\n$query\n$DBI::errstr");
Replace with:
Code:
$db_stmt_cache{$query_id}->execute(@bind_args);
#or die ("Unable to execute query $query_id):\n$query\n$DBI::errstr");