Error when selecting row in database (operator not found).