I didn't say that your schema WAS flawed, I just thought it may need to be reevaluated, as it seems that your data may not be normalized. There have been many times on this forum where I have seen users creating fields such as:
link_1
link_2, etc...
which would benefit from a separate table. This particular thread you began looked similar. You're right that I don't know what the application is, or what your code looks like, but I just wanted to interject in the case that you had approached it the wrong way.
Once again, I am sorry if I have offended you.
p.