MySQL Error!
MySQL error in file: /engine/modules/show.short.php at line 83
Error Number: 1064
The Error returned was:
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 (SUBSTRING_INDEX(SUBSTRING_INDEX(xfields, 'city|', -1), '||', 1) LIKE '%Ин' at line 1
SQL query:

SELECT p.id, p.autor, p.date, p.short_story, CHAR_LENGTH(p.full_story) as full_story, p.xfields, p.title, p.category, p.alt_name, p.comm_num, p.allow_comm, p.fixed, p.tags, e.news_read, e.allow_rate, e.rating, e.vote_num, e.votes, e.view_edit, e.editdate, e.editor, e.reason FROM dle_post p LEFT JOIN dle_post_extras e ON (p.id=e.news_id) LEFT JOIN dle_dle_filter_news f ON (p.id=f.newsId) WHERE approve=1 LIMIT 100 AND (SUBSTRING_INDEX(SUBSTRING_INDEX(xfields, 'city|', -1), '||', 1) LIKE '%Инжавино%') AND category REGEXP '([[:punct:]]|^)(117|124|126|128|132|135|138|141|144|150|153|147|6)([[:punct:]]|$)' ORDER BY date desc LIMIT 0,20