SELECT id FROM jobs WHERE 1 = 1 AND company LIKE "AT\" s Eventos" AND is_temp = 0 AND is_active = 1 ORDER BY created_on DESC #0 Db->query(SELECT id FROM jobs WHERE 1 = 1 AND company LIKE "AT\" s Eventos" AND is_temp = 0 AND is_active = 1 ORDER BY created_on DESC ) called at [/usr/local/lsws/VagasABC/html/_includes/class.Job.php:547] #1 Job->ApiGetJobsByCompany(AT" s Eventos, , ) called at [/usr/local/lsws/VagasABC/html/page_company.php:14] #2 require_once(/usr/local/lsws/VagasABC/html/page_company.php) called at [/usr/local/lsws/VagasABC/html/index.php:62] Execute query error, because: Array ( [0] => 42601 [1] => 7 [2] => ERROR: syntax error at or near "s" LINE 3: ... WHERE 1 = 1 AND company LIKE 'AT\' s Eventos'... ^ )