Fixed bug when no SQL WHERE condition was passed to the get_user_group_privileges() function - credit to ovvessem