SQL Error: 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 'Hermes Koma Kurabe%' OR news_tags LIKE '%Hermes%' OR news_tags LIKE '%Slim d'He' at line 5 at /var/www/paradise/data/www/watchparadise.ru/inc/Modules/functions.php line 4757
SQL Error:
Array
(
    [code] => 1064
    [message] => 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 'Hermes Koma Kurabe%'
	OR news_tags LIKE '%Hermes%' OR news_tags LIKE '%Slim d'He' at line 5
    [query] => select count(*) from wp_news t1 join wp_news_category t0 on t1.ncat_id=t0.ncat_id and t0.ncat_visible=2
 				join wp_blocks t21 on t21.block_desc = t1.ncat_id
				join wp_category_blocks t31 on t31.block_id = t21.block_id and t31.visible = 2 and t31.desc = 'news'
				join wp_news_category t10 on t1.ncat_id=t10.ncat_id and t10.ncat_visible=2
	 			where t1.blog = 1 and news_lang='ru' and news_visible=2 and news_date<1481269776 and t1.ncat_id = 1 and news_id != 720 and (news_title LIKE '%Hermes%' OR news_title LIKE '%Slim d'Hermes Koma Kurabe%'
	OR news_tags LIKE '%Hermes%' OR news_tags LIKE '%Slim d'Hermes Koma Kurabe%'
	OR news_text LIKE '%Hermes%' OR news_text LIKE '%Slim d'Hermes Koma Kurabe%'
	OR news_fulltext LIKE '%Hermes%' OR news_fulltext LIKE '%Slim d'Hermes Koma Kurabe%')
    [context] => /var/www/paradise/data/www/watchparadise.ru/inc/Modules/functions.php line 4757
)