[error] => Table '/mnt/m/#sql_d79_0' is marked as crashed and should be repaired
    [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 as photos,
			(SELECT COUNT(*) FROM id_comments WHERE id_comments.module='objects' AND AND id_comments.status='approved') as comments
			FROM id_object_params
			RIGHT JOIN id_objects ON ( )
			LEFT JOIN id_images ON (
			WHERE id_objects.status<>'disabled' AND ((paramId=167 AND valueId=6586))
			GROUP BY objectId HAVING rel=1
			ORDER BY rating DESC, hits DESC
			LIMIT 0, 10