exception 'Exception' with message 'MySQL syntax error in query:

            SELECT * 
            FROM `gallery` 
            WHERE `status`=1 AND `type`='photo' AND `data`!='' 
               AND (`category`= OR `category`=19 OR `category`=18 OR `category`=17 OR `category`=22 OR `category`=23 OR `category`=29 OR `category`=31 OR `category`=32)
            ORDER BY `create_time` DESC 
         

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 'OR `category`=19 OR `category`=18 OR `category`=17 OR `category`=22 OR `category' at line 4' in /home/web/beautynehty.cz/www/inc/Db.php:69
Stack trace:
#0 /home/web/beautynehty.cz/www/mod/gallery/output.php(466): db->query('??            S...')
#1 /home/web/beautynehty.cz/www/themes/nehty/controller.php(365): modGallery->outputThumbs('CONTENT', 'cat', 'svatebni-design', 12, Array)
#2 /home/web/beautynehty.cz/www/inc/OutputController.php(63): ActualController->letsGo()
#3 /home/web/beautynehty.cz/www/index.php(62): OutputController->run()
#4 {main}