Syntax error, unexpected token ), near to ' ORDER BY date_create DESC LIMIT 6', when parsing: SELECT [Content].* FROM [Content] WHERE state ='activo' AND destination='noticias' AND id_con NOT IN() ORDER BY date_create DESC LIMIT 6 (136)