A fatal MySQL error occurred.

Query:
SELECT b.id, b.listing_id, b.extension, b.type_id, b.url, b.target, b.alt_text, b.code FROM pmd_banners b INNER JOIN pmd_banners_categories bc ON bc.banner_id=b.id WHERE b.status = 'active' AND bc.category_id=34292 AND b.type_id=2 ORDER BY date_last_displayed ASC, RAND('44d1e33ab805587a362a4176cffa398b')

Error:
(2006) MySQL server has gone away

A fatal MySQL error occurred.

Query:
REPLACE INTO pmd_sessions VALUES ('44d1e33ab805587a362a4176cffa398b','initiated|b:1;',1614925643,'a1a7117d617db15d4b6021c9c9e6eff2')

Error:
(2006) MySQL server has gone away