That didn't work either. But, I have done a few tests.
I am using MacSQL to run sample queries on mySQL and have discovered there is nothing wrong with my SQL statement, other than having the limit before the order, which I corrected and it still didn't work.
I created a new simple php file, with a limit, and I got it working with no problem. So I have since, recreated my original file using the simple file. I recreated it piece by piece adding small chunks of code.
I have it working now. I am not really sure what caused the error. But starting fresh, and rebuilding seems to have solved the problem.
Thanks for the help.