kh99, thank you for all of your help! You have no idea how much this has been driving me insane! LOL Props to you!
--------------- Added [DATE]1333981179[/DATE] at [TIME]1333981179[/TIME] ---------------
It didn't fix. The problem seems to be $posts. I know I changed that the last time but I really have no idea what I put in there. If I change to other things, I get different operations from it. I am beyond confused but I really do thank you for helping me.