reports: fix refresh with filters
mysql: fixed possible syntax error