Fix count_all_result if QB query contains Having
Fix count_all_result if QB query contains Having

Signed-off-by: Najdanovic Ivan <037133b3ad6e9e5f06d607ba03875bb725a5b8ca@gmail.com>

bcit-ci/CodeIgniter,madwings/InsaneDB,madwings/InsaneDB,madwings/InsaneDB,madwings/InsaneDB,butane/CodeIgniter,madwings/InsaneDB,bcit-ci/CodeIgniter,bcit-ci/CodeIgniter,butane/CodeIgniter,bcit-ci/CodeIgniter,butane/CodeIgniter,bcit-ci/CodeIgniter,butane/CodeIgniter,butane/CodeIgniter