MySQL Error!

Date: [18:30:21] 27.11.2021 +0300

MySQL:
Query:                 select * from ds_firma where status=1  and (tag like '%"342"%' or tag like '%i:342;%') order by  rating desc  limit 0, 10
mysql_error():         MySQL server has gone away
mysql_errno():         2006
mysql_server_info():   5.7.27-0ubuntu0.18.04.1

Script:
SCRIPT_FILELINE:       /var/www/allmoscowshop/data/www/allmoscowshop.ru/modules/tag.inc.php:79
SCRIPT_FILENAME:       /var/www/allmoscowshop/data/www/allmoscowshop.ru/index.php

Request:
REQUEST_URI:           /tag/dizain_i_remont_pod_klyuch/
QUERY_STRING:          module=tag&id=dizain_i_remont_pod_klyuch
HTTP_REFERER:          
HTTP_HOST:             www.allmoscowshop.ru
REQUEST_METHOD:        GET

Server:
SERVER_SOFTWARE:       Apache/2.4.29 (Ubuntu)
SERVER_PORT:           80
SERVER_NAME:           www.allmoscowshop.ru

User:
HTTP_USER_AGENT:       CCBot/2.0 (https://commoncrawl.org/faq/)
REMOTE_ADDR:           34.228.229.51
REMOTE_PORT:           34982