SQLiteDatabase error:near "in1": syntax error : I have click First button this time show error in1
<br>I have put the = in the query some error near "=": syntax error like this how to solve it .
<br>In this query i have use String Builder for concat  to multiple string

   

     public List<People> getPeople(String category_id) {
        List<People> peoples = new ArrayList<>();
        try {
            SQLiteDatabase db = SQLiteDatabase.openDatabase(DB_PATH + DB_NAME, null, SQLiteDatabase.OPEN_READWRITE);
            StringBuilder sb = new StringBuilder();
            sb.append(",");
            Cursor cursor = db.rawQuery("select * from people where category_id in"+(category_id + sb + category_id), null);

            while (cursor.moveToNext()) {
                String peopleName = cursor.getString(cursor.getColumnIndex(PEOPLE_NAME));
                String peopleImage = cursor.getString(cursor.getColumnIndex(PEOPLE_IMAGE));

                People people = new People();
                people.setPeopleName(peopleName);
                people.setPeopleImage(peopleImage);

                peoples.add(people);
            }

        } catch (Exception e) {
            Log.d("DB", e.getMessage());
        }
        return peoples;
    }