Error on query SELECT jobs.id FROM jobs, firme WHERE jobs.id_firma=firme.id AND stare=2 AND jobs.status=3 AND (jobs.tara='Cote D'ivoire' OR jobs.tara='International') ORDER BY jobs.data_adaugare DESC . Err desc: 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 'ivoire' OR jobs.tara='International') ORDER BY jobs.data_adaugare DESC' at line 12