Chris, My bad! You're right. I was trying to put in a simple clean example but I didn't clean it up enough. I did find all those 'problems' in my posted code later but forgot to include them when I posted what the final resolution was. Thanks! Chris wrote: Also - if you want help, please post the problem code *exactly*. You had three problems in the post that have nothing to do with this solution... -- View this message in context: http://www.nabble.com/Can%27t-figure-out-why-getting-%22query-was-empty%22-error-tf2876259.html#a8158374 Sent from the Php - Database mailing list archive at Nabble.com. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php