Why do you store all the pics in columns? First, very not normalized, second, if someone doesn't store 15 images, you're wasting space, and if you ever want more then 15 images, you have to go back and redo your db. Plus, with stuff like you're currently trying to do, its a hassle.
So first things first, you can't do what you're trying to do without PHP processing as far as I know. There might be a clever way to use COUNT and some other functions to get back 15 images, but I don't know how.
Second, you should normalize. Have one table that that contains the current table minus the pic1-15 and the imgorder. Given I don't know what the rest of your variables do, no way of giving further normalization advice. Create a second table with a p_id, picID, picOrder.
You can always get the pics and which order they are in by selecting the ones in reference to a perticular P_id, sorted by picOrder. You can find out how many a user has by counting rows. Its simpler, cleaner, and now you can get 20 images without any real issue.
Also, in before Old Pendant shouts about "No deliminated lists in a column!" (which I don't believe is a problem 100% of the time... just 99%

)