select distinct con.idcontenuto as idcont, con.titolo, con.pageurl, con.datapub from VERT_CONTENUTI as con left join VERT_AUTORICONTENUTI as aut on con.idcontenuto = aut.idcontenuto join vert_allegaticontenuti as alle on con.idcontenuto = alle.idcontenuto where stato = 'P' and (((autore like '%Marco A.G. Golinelli - Consigliere delegato Anima per l'Energia, Presidente Italcogen%' or aut.nome like '%Marco A.G. Golinelli - Consigliere delegato Anima per l'Energia, Presidente Italcogen%') and (autoreurl like '%https://www.anima.it/associazioni/elenco/italcogen%' or aut.url like '%https://www.anima.it/associazioni/elenco/italcogen%')) ) and alle.tipo <> 'youtube' order by datapub desc
Array
(
)
Array
(
[0] => Array
(
[0] => 42000
[SQLSTATE] => 42000
[1] => 102
[code] => 102
[2] => [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near 'Energia'.
[message] => [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near 'Energia'.
)
[1] => Array
(
[0] => 01000
[SQLSTATE] => 01000
[1] => 16954
[code] => 16954
[2] => [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Executing SQL directly; no cursor.
[message] => [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Executing SQL directly; no cursor.
)
)