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 'o comunicarse al 249 4548533) ORDER BY created desc, name, id desc' at line 1 SELECT `id`, `user_id`, `name`, `beneficiary`, `description`, `start_date`, `end_date`, `created`, `updated` FROM `projects` WHERE id IN (101 o comunicarse al 249 4548533) ORDER BY created desc, name, id desc