SELECT id, title, body, image, permalink, date_show, anonce, comments, CONCAT('http://www.laikas.lt/assets/data/news/', image, '_1.jpg') as img, CONCAT('http://www.laikas.lt/lt/', 'info/', id, '/', permalink, '/') as link, CONCAT('http://www.laikas.lt/lt/', 'info/komentarai/', id, '/', permalink, '/') as link_comments FROM mod_news WHERE category = AND published = 1 AND id != 1347 AND date_show <= NOW() ORDER BY date_show DESC LIMIT 0, 12
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 published = 1 AND id != 1347 ' at line 7
Output has already been sent to the browser at /var/www/www.laikas24.lt/htdocs/system/libraries/db_mysql.php:145. Please make sure the command $xajax->processRequest() is placed before this.