We have a PHP site connected to a MySQL database. We have two directories set up on the site, with two different databases to keep live data separate from development stuff.
We updated a new section on the development site which works perfectly. However, it throws up a MySQL syntax error on the live site. I've done a quick file comparison and can't work out the issue so I'll leave it to the professionals :)