Fixed SQL not working on AJAX and Feeds on some servers.