DATABASE ERROR:

SELECT con.*,
					   cat.title as cat_title, cat.seolink as catseolink,
					   cat.showdesc,
                       u.nickname as author,
                       u.login as user_login
                FROM cms_content con
				INNER JOIN cms_category cat ON cat.id = con.category_id
				LEFT JOIN cms_users u ON u.id = con.user_id
                WHERE con.is_arhive = 0
                       AND (cat.NSLeft >= '64' AND cat.NSRight <= '65' AND cat.parent_id > 0)
 AND (con.id != 2521)
 AND (con.published = 1 AND con.pubdate <= '2017-12-18 09:48:54' AND (con.is_end=0 OR (con.is_end=1 AND con.enddate >= '2017-12-18 09:48:54')))


                

                ORDER BY con.rating DESC
LIMIT 0, 5

Lost connection to MySQL server during query