Basically what is happening is when you are passing a argument in query it is not becoming an iterable because it is coming in bracket.
In order to make it iterable you need to make it in that form like list or tuple. Soo you can either add comma at the end (1,) or make it a list [1].