exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and tpn_represent = '' and tpn_date <= '' order by tpn_date des' at line 2' in /data/www/htdocs/samhodev_new/lib/lib.php:1105 Stack trace: #0 /data/www/htdocs/samhodev_new/lib/lib.php(1105): PDO->prepare('select * from t...') #1 /data/www/htdocs/samhodev_new/lib/lib.php(17): pdo_query(Object(PDO), 'select * from t...') #2 /data/www/htdocs/samhodev_new/pc/view/pr/newsletter_view.php(30): _MQ('select * from t...') #3 {main}