PROJECTS IN

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 'OR p.project_global = 1) ORDER BY p.project_id DESC' at line 6

SELECT p.project_id, p.project_title, p.project_seo, p.project_target, p.project_donated, p.project_image, project_donation_types, p.project_default_donation, c.* FROM projects p, countries c WHERE c.country_id = p.country_id AND p.project_status = 1 AND (p.country_id = OR p.project_global = 1) ORDER BY p.project_id DESC