Added query to user_debt, fixed syntax