Error Number: 1064
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 ‘خطة المواطن الاستثمارية%” OR a.metakey LIKE “%خطة الم’ at line 4
SELECT `a`.*, `c`.`title` as category, `c`.`alias` as cat_alias
FROM (`articles` as a)
LEFT JOIN `categories` as c ON `a`.`catid` = `c`.`id`
WHERE (a.metakey LIKE “%وزارة التخطيط والتنمية الاقتصادية%” OR a.metakey LIKE “%”خطة المواطن الاستثمارية%” OR a.metakey LIKE “%خطة المواطن%” OR a.metakey LIKE “%بوابة الوفد%”)
AND `a`.`id` NOT IN (‘3455245’)
AND `a`.`id` = (select max(dd.id) from articles dd ) – 10000
ORDER BY `a`.`created` desc
LIMIT 6
Filename: /home/wafd/public_html/models/article_model.php
Line Number: 228
[ad_1]