Array
(
    [error] => Lost connection to MySQL server during query
    [sql] => SELECT id_object_params.*, id_objects.*, COUNT(1) AS rel, id_images.ext AS logoExt,
			(SELECT COUNT(*) FROM id_images WHERE id_images.type='galery' AND id_images.isThumbOf=0 AND id_images.objectId=id_objects.id) as photos,
			(SELECT COUNT(*) FROM id_comments WHERE id_comments.module='objects' AND id_comments.pageId=id_objects.id AND id_comments.status='approved') as comments
			FROM id_object_params
			RIGHT JOIN id_objects ON ( id_object_params.objectId=id_objects.id )
			LEFT JOIN id_images ON (id_images.id=id_objects.logoId)
			WHERE id_objects.status<>'disabled' AND ((paramId=278 AND valueId=12003))
			GROUP BY objectId HAVING rel=1
			ORDER BY rating DESC, hits DESC
			LIMIT 0, 10
)