pass arrays to ->prepare correctly