Fix array concat and sql param bind mistakes