[eluser]brianw1975[/eluser]
hrm... interesting... runs if you set_timeout to 0 fails if you don't..it almost sounded like a memory issue (on the remote server), then i was thinking security time out...
but now, after doing some reading how about this - turn on your log_slow_queries (in the my.ini config file) and make sure your query is actually optimized, also, make sure you have indexes on the appropriate columns, in my newbie days i didn't understand the benefits of indexes, had a page that took upwards of 5 minutes to load and when i did the log_slow_queries thing I found that a table of over 500,000 rows was being processed for every table row that was being displayed on the website.