Seems like there is an issue that is causing some queries to time out. The database team is on it. Thank you for including the query and and the error message.
Well the database has been severly admonished so you should be good now, however the underlying bug that causes this to happen on rare occasions still needs to be fixed. Sorry about the problem.
Dear Giuseppe,
It sounds like Frossie and the database team have taken care of this; thus I am marking Frossie’s answer as the solution. If you are still having trouble, though, please let us know. Thanks!
Best regards,
Douglas