DBException!
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 visible = 1 and shop = '0' and `type` = 'news' order by tstamp desc limit 3' at line 1
in file: /home/mirineta/zernov.com.ua/www/app/lib/db.php
at line: 39
Trace:
0 -> file -> /home/mirineta/zernov.com.ua/www/app/Model/Model.php
line -> 109
function -> q
class -> MySQL
type -> ->
args -> Array ( [0] => select * from `kmebel_page` where tstamp < and visible = 1 and shop = '0' and `type` = 'news' order by tstamp desc limit 3 )

1 -> file -> /home/mirineta/zernov.com.ua/www/app/Model/Model.php
line -> 82
function -> q
class -> Model_Model
type -> ->
args -> Array ( [0] => select * from `kmebel_page` where tstamp < and visible = 1 and shop = '0' and `type` = 'news' order by tstamp desc limit 3 )

2 -> file -> /home/mirineta/zernov.com.ua/www/app/Model/Page.php
line -> 28
function -> getall
class -> Model_Model
type -> ->
args -> Array ( [0] => Array ( [where] => tstamp < and visible = 1 and shop = '0' and `type` = 'news' [order] => tstamp desc [limit] => 3 ) )

3 -> file -> /home/mirineta/zernov.com.ua/www/app/view/scripts/news/cont.php
line -> 5
function -> getall
class -> Model_Page
type -> ->
args -> Array ( [0] => Array ( [where] => tstamp < and visible = 1 [order] => tstamp desc [limit] => 3 ) )

4 -> file -> /home/mirineta/zernov.com.ua/www/Zend/View.php
line -> 108
args -> Array ( [0] => /home/mirineta/zernov.com.ua/www/app/view/scripts/news/cont.php )
function -> include

5 -> file -> /home/mirineta/zernov.com.ua/www/Zend/View/Abstract.php
line -> 831
function -> _run
class -> Zend_View
type -> ->
args -> Array ( [0] => app/view/scripts/news/cont.php )

6 -> file -> /home/mirineta/zernov.com.ua/www/app/controller/news.php
line -> 59
function -> render
class -> Zend_View_Abstract
type -> ->
args -> Array ( [0] => news/cont.php )

7 -> file -> /home/mirineta/zernov.com.ua/www/cms.php
line -> 42
args -> Array ( [0] => /home/mirineta/zernov.com.ua/www/app/controller/news.php )
function -> include