That message means, essentially, that your query is taking too long, and that the system is cancelling it before it gets a chance to complete. You'll basically need to optimize your query and find a way to make it take less time; in this particular case, I'd wager it's due to your
LIKE %...%
, which is a really resource-intensive operation. —
zcoop98 5 mins ago