Fatal error: Uncaught PDOException: 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 'AND type='publications' AND public=1 ORDER BY main DESC' at line 1 in /sata1/home/users/kalynka/www/www.kalynka.km.ua/main/class/images.php:18 Stack trace: #0 /sata1/home/users/kalynka/www/www.kalynka.km.ua/main/class/images.php(18): PDO->query('SELECT * FROM i...') #1 /sata1/home/users/kalynka/www/www.kalynka.km.ua/modules/publications/init.php(12): Images->getImages(NULL, 'publications') #2 /sata1/home/users/kalynka/www/www.kalynka.km.ua/main/module_init.php(2): include('/sata1/home/use...') #3 /sata1/home/users/kalynka/www/www.kalynka.km.ua/index.php(17): include('/sata1/home/use...') #4 {main} thrown in /sata1/home/users/kalynka/www/www.kalynka.km.ua/main/class/images.php on line 18