Adding onto what @benanamen had said, there’s a lot of redundant code you have there. You use bindValue
, but then you start executing an array. Kind of makes no sense. Not only that, there is really no need to use COUNT
since it wouldn’t make sense to total up 1 username if it exists.
2 Likes