SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT `layout_update`.`xml` FROM `core_layout_update` AS `layout_update`
 INNER' at line 1, query was: EXPLAIN EXTENDED SELECT `layout_update`.`xml` FROM `core_layout_update` AS `layout_update`
 INNER JOIN `core_layout_link` AS `link` ON link.layout_update_id=layout_update.layout_update_id WHERE (link.store_id IN (0, :store_id)) AND (link.area = :area) AND (link.package = :package) AND (link.theme = :theme) AND (layout_update.handle = :layout_update_handle) ORDER BY `layout_update`.`sort_order` ASC

#0 /home/www/jair-r202/www/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/www/jair-r202/www/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /home/www/jair-r202/www/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /home/www/jair-r202/www/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('EXPLAIN EXTENDE...', Array)
#4 /home/www/jair-r202/www/lib/Varien/Db/Adapter/Pdo/Mysql.php(485): Zend_Db_Adapter_Pdo_Abstract->query('EXPLAIN EXTENDE...', Array)
#5 /home/www/jair-r202/www/app/code/community/Sheep/Debug/Helper/Data.php(115): Varien_Db_Adapter_Pdo_Mysql->query('EXPLAIN EXTENDE...', Array)
#6 /home/www/jair-r202/www/app/code/community/Sheep/Debug/controllers/ModelController.php(70): Sheep_Debug_Helper_Data->runSql('EXPLAIN EXTENDE...', Array)
#7 /home/www/jair-r202/www/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Sheep_Debug_ModelController->describeSqlAction()
#8 /home/www/jair-r202/www/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('describeSql')
#9 /home/www/jair-r202/www/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#10 /home/www/jair-r202/www/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#11 /home/www/jair-r202/www/app/Mage.php(650): Mage_Core_Model_App->run(Array)
#12 /home/www/jair-r202/www/index.php(85): Mage::run('', 'store')
#13 {main}