Found a bug in classibase code making problem with ad counts. To fix it change line 73 in
/sys/app/models/AdCategoryCount.php file from
FROM " . Ad::tableNameFromClassName('Ad') . "
This fix will be released with next script update.
Thank you for reporting and helping to find this bug.