Database_Exception [ 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 'AND rft > and category_id <>0 ORDER BY lft asc' at line 1 [ SELECT category_id, lft, rft,name FROM con_category_tree WHERE lft < AND rft > and category_id <>0 ORDER BY lft asc ]

MODPATH/database/classes/kohana/database/mysql.php [ 181 ]

176 			{
177 				// This benchmark is worthless
178 				Profiler::delete($benchmark);
179 			}
180 
181 			throw new Database_Exception(':error [ :query ]',
182 				array(':error' => mysql_error($this->_connection), ':query' => $sql),
183 				mysql_errno($this->_connection));
184 		}
185 
186 		if (isset($benchmark))
  1. MODPATH/database/classes/kohana/database/query.php [ 226 ] » Kohana_Database_MySQL->query(arguments)

  2. APPPATH/classes/model/categorytree.php [ 66 ] » Kohana_Database_Query->execute()

  3. APPPATH/classes/help.php [ 403 ] » Model_Categorytree->get_parent_tree(arguments)

  4. APPPATH/classes/controller/product.php [ 165 ] » Help::get_category_crumbs(arguments)

  5. {PHP internal call} » Controller_Product->action_index()

  6. SYSPATH/classes/kohana/request/client/internal.php [ 132 ] » ReflectionMethod->invokeArgs(arguments)

  7. SYSPATH/classes/kohana/request.php [ 1160 ] » Kohana_Request_Client_Internal->execute(arguments)

  8. DOCROOT/index.php [ 140 ] » Kohana_Request->execute()

Environment