error!

SQLSTATE[HY093]: Invalid parameter number: no parameters were bound

trace:

1 plik /home/users/sokol/public_html/library/Zend/Db/Statement/Pdo.php w linijce 234 :
228: ...
229:             } else {
230:                 return $this->_stmt->execute();
231:             }
232:         } catch (PDOException $e) {
233:             require_once 'Zend/Db/Statement/Exception.php';
234: throw new Zend_Db_Statement_Exception($e->getMessage(), (int) $e->getCode(), $e);
235: } 236: } 237: 238: /** 239: * Fetches a row from the result set. 240: ...


2 plik /home/users/sokol/public_html/library/Zend/Db/Statement.php w linijce 300 :
294: ...
295:     {
296:         /*
297:          * Simple case - no query profiler to manage.
298:          */
299:         if ($this->_queryId === null) {
300: return $this->_execute($params);
301: } 302: 303: /* 304: * Do the same thing, but with query profiler 305: * management before and after the execute. 306: ...


3 plik /home/users/sokol/public_html/library/Zend/Db/Adapter/Abstract.php w linijce 479 :
473: ...
474:             $bind = array($bind);
475:         }
476: 
477:         // prepare and execute the statement with profiling
478:         $stmt = $this->prepare($sql);
479: $stmt->execute($bind);
480: 481: // return the results embedded in the prepared statement object 482: $stmt->setFetchMode($this->_fetchMode); 483: return $stmt; 484: } 485: ...


4 plik /home/users/sokol/public_html/library/Zend/Db/Adapter/Pdo/Abstract.php w linijce 238 :
232: ...
233:                 }
234:             }
235:         }
236: 
237:         try {
238: return parent::query($sql, $bind);
239: } catch (PDOException $e) { 240: /** 241: * @see Zend_Db_Statement_Exception 242: */ 243: require_once 'Zend/Db/Statement/Exception.php'; 244: ...


5 plik /home/users/sokol/public_html/library/Zend/Db/Table/Abstract.php w linijce 1529 :
1523: ...
1524:      * @param  Zend_Db_Table_Select $select  query options.
1525:      * @return array An array containing the row results in FETCH_ASSOC mode.
1526:      */
1527:     protected function _fetch(Zend_Db_Table_Select $select)
1528:     {
1529: $stmt = $this->_db->query($select);
1530: $data = $stmt->fetchAll(Zend_Db::FETCH_ASSOC); 1531: return $data; 1532: } 1533: 1534: }


6 plik /home/users/sokol/public_html/library/Zend/Db/Table/Abstract.php w linijce 1391 :
1385: ...
1386: 
1387:         } else {
1388:             $select = $where->limit(1, $where->getPart(Zend_Db_Select::LIMIT_OFFSET));
1389:         }
1390: 
1391: $rows = $this->_fetch($select);
1392: 1393: if (count($rows) == 0) { 1394: return null; 1395: } 1396: 1397: ...


7 plik /home/users/sokol/public_html/library/Koli/Model/News.php w linijce 148 :
142: ...
143:       return $obj[0]['count'];
144:     }
145: 
146:     public function getNextNews($curItem){
147:         $query = $this->select()->from($this->_name)->where('add_date>=?', $curItem['add_date'])->where('active=1  AND id!='.$curItem['id'])->order("add_date asc")->limit(1);
148: $row = $this->fetchRow( $query );
149: if (count($row)) 150: return $row->toArray(); 151: else 152: return FALSE; 153: } 154: ...


8 plik /home/users/sokol/public_html/library/Koli/Controller/Standard/NewsController.php w linijce 23 :
17: ...
18: 		}
19:         $this->view->_link_name = $this->_news->_link_name;
20:         $this->view->_link_name_s = $this->_news->_link_name_s;
21:         $newsItem['content'] = stripcslashes($newsItem['content']);
22:         $this->view->newsItem = $newsItem;
23: $this->view->nextItem = $this->_news->getNextNews($this->view->newsItem);
24: $this->view->prevItem = $this->_news->getPrevNews($this->view->newsItem); 25: $this->view->setContent("news", "news"); 26: $this->view->navigator = array(array("name" => $this->_news->_full_name, "link_name" => $this->_news->_link_name_s), 27: array('name'=> $newsItem['title'], 'link_name'=>'/'.$this->_news->_link_name.'/'.$newsItem['link_name'])); 28: } 29: ...


9 plik /home/users/sokol/public_html/library/Zend/Controller/Action.php w linijce 516 :
510: ...
511:                 // preDispatch() didn't change the action, so we can continue
512:                 if ($this->getInvokeArg('useCaseSensitiveActions') || in_array($action, $this->_classMethods)) {
513:                     if ($this->getInvokeArg('useCaseSensitiveActions')) {
514:                         trigger_error('Using case sensitive actions without word separators is deprecated; please do not rely on this "feature"');
515:                     }
516: $this->$action();
517: } else { 518: $this->__call($action, array()); 519: } 520: } 521: $this->postDispatch(); 522: ...


10 plik /home/users/sokol/public_html/library/Zend/Controller/Dispatcher/Standard.php w linijce 295 :
289: ...
290:         if (empty($disableOb)) {
291:             ob_start();
292:         }
293: 
294:         try {
295: $controller->dispatch($action);
296: } catch (Exception $e) { 297: // Clean output buffer on error 298: $curObLevel = ob_get_level(); 299: if ($curObLevel > $obLevel) { 300: do { 301: ...


11 plik /home/users/sokol/public_html/library/Zend/Controller/Front.php w linijce 954 :
948: ...
949: 
950:                 /**
951:                  * Dispatch request
952:                  */
953:                 try {
954: $dispatcher->dispatch($this->_request, $this->_response);
955: } catch (Exception $e) { 956: if ($this->throwExceptions()) { 957: throw $e; 958: } 959: $this->_response->setException($e); 960: ...


12 plik /home/users/sokol/public_html/www/index.php w linijce 166 :
160: ...
161: 
162: function __($str){
163:     return $str;
164: }
165: 
166: $front->dispatch();