Fixed problem with array of params inside sql.py