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 `main_table`.`entity_id`, main_table.`name`, main_table.`path`, `main_tab' at line 1, query was: EXPLAIN EXTENDED SELECT `main_table`.`entity_id`, main_table.`name`, main_table.`path`, `main_table`.`is_active`, `main_table`.`is_anchor`, `url_rewrite`.`request_path` FROM `catalog_category_flat_store_1` AS `main_table`
 LEFT JOIN `core_url_rewrite` AS `url_rewrite` ON url_rewrite.category_id=main_table.entity_id AND url_rewrite.is_system=1 AND url_rewrite.store_id = 1 AND url_rewrite.id_path LIKE 'category/%' WHERE (main_table.include_in_menu = '1') AND (main_table.is_active = '1') AND (main_table.path like '1/2/615/%') AND (`level` <= 3) ORDER BY `main_table`.`position` 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}