SELECT id, title, body, image, permalink, date_show, anonce, comments,
CONCAT('https://www.laikas.lt/assets/data/news/', image, '_1.jpg') as img,
CONCAT('https://www.laikas.lt/lt/', 'info/', id, '/', permalink, '/') as link,
CONCAT('https://www.laikas.lt/lt/', 'info/komentarai/', id, '/', permalink, '/') as link_comments
FROM mod_news
WHERE category =
AND published = 1
AND id != 8221
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 != 8221
' at line 7