$getcustomers = $db->query_first("SELECT SUM(IF(ispending = 1, 1, 0)) as pending, SUM(IF(ispending = 0, 1, 0)) as active FROM son_customers");